.. _section_shapetk_releasenotes_172:

Shape TK 1.7.2
================================================================================


New features
--------------------------------------------------------------------------------

* OEAddColorAtoms now has an optional third argument to cause precalculation
  and caching of the self color. When re-using molecules in multiple 
  comparisons (for example NxN studies), use OEAddColorAtoms once and then
  OEBestOverlay and OEColorOverlap will use the pre-stored color atoms and
  self color to speed up the calculations.

* Added a set of functions to manipulate cached self color.

  * :oe:func:`OEShape::OESetCachedSelfColor`
  * :oe:func:`OEShape::OEHasCachedSelfColor`
  * :oe:func:`OEShape::OEGetCachedSelfColor`
  * :oe:func:`OEShape::OEClearCachedSelfColor`

* The pair of functions (``OEColorAtomsToString`` and
  ``OEStringToColorAtoms``) added in v1.7.1 have been
  renamed to more appropriate names. The new functions are
  :oe:func:`OEShape::OECompressColorAtoms` and
  :oe:func:`OEShape::OEUncompressColorAtoms`.



Bug fixes
--------------------------------------------------------------------------------

* Fixed a bug where dummy atoms could cause an erroneous result for 
  OECalcVolume.
  

