.. oe:namespace:: OEShape

.. meta::
   :keywords: OEMol2Query

..  _OEShape_OEMol2Query:

.. oe:function:: OEMol2Query

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

      .. oe:api::

         bool OEMol2Query(OEShape::OEShapeQuery& query,
                          const OEChem::OEMolBase& mol,
                          const OEShape::OEColorForceField& cff)

   .. oe:language:: python

      .. oe:api:: python

         OEMol2Query(query: OEShapeQuery, mol: Union[OEGraphMol,OEMol,OEQMol],
                     cff: OEColorForceField) -> bool

   Creates a :ref:`OEShapeQuery <OEShape_OEShapeQuery>` from the input
   :ref:`OEMolBase <OEChem_OEMolBase>`. The molecule must have valid 3D
   coordinates assigned. The specified
   :ref:`OEColorForceField <OEShape_OEColorForceField>` is used to generate
   color atoms during the query generation process.

   Returns true on successful query generation.
