.. include:: ../substitutions

.. oe:namespace:: OEDepict

.. meta::
   :keywords: OEDepictCoordinates

.. _OEDepict_OEDepictCoordinates:


.. oe:function:: OEDepictCoordinates


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

      .. oe:api::

         bool OEDepictCoordinates(OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

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

   Assigns 2D coordinates to the given :ref:`OEMolBase <OEChem_OEMolBase>`
   object by invoking the :oe:func:`OEChem::OEGenerate2DCoordinates`
   function.
   The coordinates of each explicit atom are assigned using the
   :oe:meth:`OEChem::OEMolBase::SetCoords` method.
   This function automatically sets the dimensionality of the molecule
   to two, using the :oe:meth:`OEChem::OEMolBase::SetDimension` method.

   .. warning::

      ``OEDepictCoordinates`` is considered deprecated and will be
      removed in OEDepict 3.0. Please switch to using
      :oe:func:`OEChem::OEGenerate2DCoordinates`.
