.. # split from OESpicoliFunctions.rst:341


.. oe:namespace:: OESpicoli

.. meta::
   :keywords: OEMakeComplexCavities

.. oe:function:: OEMakeComplexCavities

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

      .. oe:api::

         bool OEMakeComplexCavities(const OEChem::OEMolBase& mol1,
                                    const OEChem::OEMolBase& mol2,
                                    OESurface& surf, float resolution = 0.5f,
                                    float probeRadius = 1.4f)

   .. oe:language:: python

      .. oe:api:: python

         OEMakeComplexCavities(ligand: Union[OEGraphMol,OEMol,OEQMol],
                               protein: Union[OEGraphMol,OEMol,OEQMol],
                               surf: OESurface, resolution: float = 0.5,
                               probeRad: float = 1.4) -> bool

   Constructs a surface representing the volume between a
   ligand (``mol1``) and a macromolecule (``mol2``) that can accommodate a
   spherical probe with radius of ``probeRadius``. Both molecules must
   have valid 3D coordinates assigned.  The resolution of the grid
   used to construct the surface is specified by ``resolution``.  The surface 
   is restricted to a 6 Angstrom envelope around ``mol1``.


