.. oe:namespace:: OEShape

.. meta::
   :keywords: OEGetCachedSelfShape

.. oe:function:: OEGetCachedSelfShape

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

      .. oe:api::

         float OEGetCachedSelfShape(const OEChem::OEConfBase& conf,
                                    unsigned int radiiApprox = OEOverlapRadii::Carbon,
                                    float cradius = 1.7f)
         float OEGetCachedSelfShape(const OEChem::OEMolBase& mol,
                                    unsigned int radiiApprox = OEOverlapRadii::Carbon,
                                    float cradius = 1.7f)

   .. oe:language:: python

      .. oe:api:: python

         OEGetCachedSelfShape(conf: OEConfBase, radiiApprox: int,
                              cradius: float = 1.7) -> float
         OEGetCachedSelfShape(mol: Union[OEGraphMol,OEMol,OEQMol],
                              radiiApprox: int, cradius: float = 1.7) -> float

   Return the value of cached self shape on the molecule or conformer. The
   value for radii approximation and cradius need to match those used to set
   this value initially. This function doesn't work for OEMCMolBase directly,
   so call it on each individual conformer.  Returns 0.0 if there is no cached
   value. Use :oe:func:`OEShape::OEHasCachedSelfShape` to determine if a real
   value is attached.
