.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetPackedCoords

.. oe:function:: OEGetPackedCoords

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

      .. oe:api::

         void OEGetPackedCoords(const OEMolBase& mol, float* coords)
         void OEGetPackedCoords(const OEMolBase& mol, double* coords)

   .. oe:language:: python

      .. oe:api:: python

         OEGetPackedCoords(mol: Union[OEGraphMol,OEMol,OEQMol],
                           coords: OEFloatArray) -> None
         OEGetPackedCoords(mol: Union[OEGraphMol,OEMol,OEQMol],
                           coords: OEDoubleArray) -> None

   Fills an array with the coordinates of a molecule.  The coordinates
   will be packed into an array of size
   :oe:meth:`OEChem::OEMolBase::NumAtoms` * 3 which is passed in as the
   coords array.  The coordinates of the atoms will be in the array in
   the same order as the atoms come out of the iterator generated by
   :oe:meth:`OEChem::OEMolBase::GetAtoms`.

   *mol*
      The molecule to get coordinates from.

   *coords*
      The array to fill coordinates with.



