.. # split from OEGraphemeFunctions.rst:3343

.. include:: ../substitutions

.. oe:namespace:: OEGrapheme

.. meta::
   :keywords: OESetSurfaceArcFxn

.. oe:function:: OESetSurfaceArcFxn

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

      .. oe:api::

         bool OESetSurfaceArcFxn(OEChem::OEMolBase& mol,
                                 OEChem::OEAtomBase* atom,
                                 const OESurfaceArcFxnBase& func)

   .. oe:language:: python

      .. oe:api:: python

         OESetSurfaceArcFxn(mol: Union[OEGraphMol,OEMol,OEQMol],
                            atom: OEAtomBase, func: OESurfaceArcFxnBase) -> bool

   Attaches the arc drawing functor to the given atom.

   *mol*
      The molecule the atom belongs to.

   *atom*
      The atom to which the functor will be attached.

   *func*
      The functor that will be used to draw the arc segment(s) of
      the molecule surface that correspond(s) to the given atom
      when the :oe:func:`OEGrapheme::OEDraw2DSurface` function
      in invoked.

   .. seealso::

      * :oe:func:`OEGrapheme::OEClearSurfaceArcFxn` function
      * :oe:func:`OEGrapheme::OEGetSurfaceArcFxn` function
      * :oe:func:`OEGrapheme::OEHasSurfaceArcFxn` function

