.. # split from OESystemFunctions.rst:1754

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEMakeMolecularGaussianGrid

.. oe:function:: OEMakeMolecularGaussianGrid

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

      .. oe:api::

         bool OEMakeMolecularGaussianGrid(OESystem::OEScalarGrid& grid,
                                          const OEChem::OEMolBase& mol,
                                          float resolution)

   .. oe:language:: python

      .. oe:api:: python

         OEMakeMolecularGaussianGrid(grid: OEScalarGrid,
                                     mol: Union[OEGraphMol,OEMol,OEQMol],
                                     resolution: float) -> bool

   Populates 'grid' (:ref:`OEScalarGrid <OESystem_OEScalarGrid>`) with floating
   point values determined by Gaussians centered at the atoms in mol
   (:ref:`OEMolBase <OEChem_OEMolBase>`). The grid will be resized to fit
   around the molecule with the specified ``resolution``.

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

      .. oe:api::

         bool OEMakeMolecularGaussianGrid(OESystem::OEScalarGrid& grid,
                                          const OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEMakeMolecularGaussianGrid(grid: OEScalarGrid,
                                     mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   Similar to the above function, however, the passed in grid
   dimension and location will be used. Care must be taken to ensure
   the molecule lies entirely within the grid. The ``resolution`` of
   the grid is determined by the passed in
   :oe:meth:`OESystem::OEGridBase::GetSpacing`.

