.. # split from OEDockingFunctions.rst:220


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OEMakeBoxMolecule

.. oe:function:: OEMakeBoxMolecule

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

      .. oe:api::

         bool OEMakeBoxMolecule(OEChem::OEMolBase& mol,
                                const OEMath::OEBox& box)

   .. oe:language:: python

      .. oe:api:: python

         OEMakeBoxMolecule(mol: Union[OEGraphMol,OEMol,OEQMol], box: OEBox) -> bool

   Creates a molecule (*mol*) out of *box*.  *mol* will have 8 nitrogen atoms,
   one at each corner of the box and a single bond between appropriate atoms.
  
   Note that this molecule is in no way chemically valid.  The purpose of this
   method is to create a molecule representing *box* that can be viewed in
   a molecular visualizer.

