.. # split from OESystemFunctions.rst:1834

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEMaskGridByMolecule

.. oe:function:: OEMaskGridByMolecule

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

      .. oe:api::

         bool OEMaskGridByMolecule(OESystem::OEScalarGrid& grid,
                                   const OEChem::OEMolBase& mol,
                                   unsigned int masktype, float contour)
         bool OEMaskGridByMolecule(OESystem::OEScalarGrid& grid,
                                   const OEChem::OEMolBase& mol,
                                   unsigned int masktype = OEGridMaskType::Default)

   .. oe:language:: python

      .. oe:api:: python

         OEMaskGridByMolecule(grid: OEScalarGrid,
                              mol: Union[OEGraphMol,OEMol,OEQMol],
                              masktype: int = OEGridMaskType_Default) -> bool
         OEMaskGridByMolecule(grid: OEScalarGrid,
                              mol: Union[OEGraphMol,OEMol,OEQMol],
                              masktype: int, contour: float) -> bool


