.. # split from OEDockingFunctions.rst:364


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OEHasClash

.. _OEDocking_OEHasClash:

.. oe:function:: OEHasClash

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

      .. oe:api::

         bool OEHasClash(const OEChem::OEMolBase& ligand,
                         const OEChem::OEMolBase& receptor,
                         const unsigned allowedType)

   .. oe:language:: python

      .. oe:api:: python

         OEHasClash(ligand: Union[OEGraphMol,OEMol,OEQMol],
                    receptor: Union[OEGraphMol,OEMol,OEQMol], allowedType: int) -> bool

   Returns ``true`` if there is clash between the supplied ligand and the receptor. Otherwise, it returns ``false``.
   The third argument, ``allowedType``, refers to definition of allowed clash
   type, according to the :oe:constns:`OEDocking::OEAllowedClashType` namespace.

