.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEMDLPerceiveBondStereo

.. oe:function:: OEMDLPerceiveBondStereo

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

      .. oe:api::

         bool OEMDLPerceiveBondStereo(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

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

   Assigns wedge and hash bonds to a connection table from
   the **OEChem TK** stereochemistry of each atom.
   This function requires that the molecule have 2D coordinates.
   See example in :ref:`Figure: Example of using OEMDLPerceiveBondStereo<figure_OEMDLPerceiveBondStereo>`

   .. _figure_OEMDLPerceiveBondStereo:

   .. figure:: ../images/OEMDLPerceiveBondStereo.*
      :scale:  100
      :align:  center

      **Example of using OEMDLPerceiveBondStereo: before (A) and after (B) calling the OEMDLPerceiveBondStereo function**

   .. note::

      This function is the opposite of the
      :oe:func:`OEChem::OEMDLStereoFromBondStereo` function.

   .. seealso::

      * :oe:constns:`OEChem::OEBondStereo` namespace

   .. note::

      The :oe:func:`OEChem::OEMDLPerceiveBondStereo` function preserves wavy bonds
      (:oe:const:`OEChem::OEBondStereo::Wavy`).
      These can only be removed by calling the
      :oe:func:`OEChem::OEMDLClearBondStereo` function.

