.. # split from OESpicoliFunctions.rst:51


.. oe:namespace:: OESpicoli

.. meta::
   :keywords: OECalculateSurfaceCurvature

.. oe:function:: OECalculateSurfaceCurvature

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

      .. oe:api::

         bool OECalculateSurfaceCurvature(OESurface& surf,
                                          const OEChem::OEMolBase& mol,
                                          float probeRadius = 1.4f)

   .. oe:language:: python

      .. oe:api:: python

         OECalculateSurfaceCurvature(surf: OESurface,
                                     mol: Union[OEGraphMol,OEMol,OEQMol],
                                     probeRadius: float = 1.4) -> bool

   Will calculate the surface curvature at every vertex according to
   the definition given in the :ref:`surfaces_specific_data`
   section. The data can then be retrieved using the
   :oe:meth:`OESpicoli::OESurface::GetCurvature` or
   :oe:meth:`OESpicoli::OESurface::GetCurvatureElement` methods.

   The molecule passed in as ``mol`` is used to construct a grid
   marking which regions of space are inaccessible to solvent
   molecules. This must be the same molecule that was used to construct
   the surface. The molecule must have valid 3D coordinates assigned.

