.. # split from OESpicoliFunctions.rst:312


.. oe:namespace:: OESpicoli

.. meta::
   :keywords: OEMakeCavitySurfaces

.. oe:function:: OEMakeCavitySurfaces

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

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

   Create a surface, ``surf``, from the macromolecule, ``mol``,
   representing where solvent can be occluded inside the
   molecule. The molecule must have valid 3D coordinates assigned. Therefore, this will not give cavities contiguous with
   the outside of the molecule. The ``resolution`` is the grid spacing
   to use during surface construction.  The ``probeRadius`` is the size of the
   solvent probe to use, in Angstroms.


