.. oe:namespace:: OESiteHopper


.. oe:function:: OEAddPatchSurface

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

       .. oe:api::

          bool OEAddPatchSurface(OEBio::OEDesignUnit& du,
                                 const OESiteHopperPatchOptions opts = OESiteHopperPatchOptions())

    .. oe:language:: python

       .. oe:api:: python

          OEAddPatchSurface(du: OEDesignUnit,
                            opts: OESiteHopperPatchOptions = OESiteHopperPatchOptions()) -> bool

    Create the patch surface (as created inside
    :oe:cls:`OESiteHopper::OESiteHopperDatabase::Add`) and attach it to
    *du*. The design unit must have valid 3D atomic coordinates and atom
    types assigned. This function is not needed for database creation or
    searching, but is useful for visualization.

