.. oe:namespace:: OEShape

.. meta::
   :keywords: OESetCachedSelfShape

.. oe:function:: OESetCachedSelfShape

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OESetCachedSelfShape(OEChem::OEMCMolBase& mcmol,
                                   unsigned int radiiApprox = OEOverlapRadii::Carbon,
                                   float cradius = 1.7f)
         bool OESetCachedSelfShape(OEChem::OEMolBase& mol,
                                   unsigned int radiiApprox = OEOverlapRadii::Carbon,
                                   float cradius = 1.7f)

   .. oe:language:: python

      .. oe:api:: python

         OESetCachedSelfShape(mcmol: OEMol, radiiApprox: int,
                              cradius: float = 1.7) -> bool
         OESetCachedSelfShape(mcmol: Union[OEGraphMol,OEQMol],
                              radiiApprox: int, cradius: float = 1.7) -> bool

   Store the self shape term on the molecule. For the OEMCMolBase, each
   conformer stores its own value. To retrieve the value,
   use :oe:func:`OEShape::OEGetCachedSelfShape`.  OEOverlap and OEBestOverlay
   will use the cached value instead of re-calculating the self terms.
