.. # split from OEBioFunctions.rst:6

.. include:: ../substitutions

.. oe:namespace:: OEBio

.. meta::
   :keywords: OEBuildUnitCell

.. oe:function:: OEBuildUnitCell

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

      .. oe:api::

         bool OEBuildUnitCell(OEChem::OEMCMolBase& cell,
                              const OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEBuildUnitCell(cell: OEMol, mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   Apply all symmetry operators specified in mol and generate the unit cell
   by removing all redundant operators.
   ``mol`` must have 3D coordinates assigned and crystal symmetry set
   (see :oe:func:`OEBio::OESetCrystalSymmetry`).


