.. # split from OESpicoliFunctions.rst:204


.. oe:namespace:: OESpicoli

.. meta::
   :keywords: OEInvertSurface

.. oe:function:: OEInvertSurface

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

      .. oe:api::

         bool OEInvertSurface(OESurface& surf)

   .. oe:language:: python

      .. oe:api:: python

         OEInvertSurface(surf: OESurface) -> bool

   Reverses all the triangle orderings and normal vectors in the
   surface. This essentially turns the surface inside-out because all
   the normals facing out are turned in and vice versa.

   .. note::

      Water pockets inside of protein structures have their normals
      facing into the protein. This can be used to make the
      disconnected surface a surface enclosing the occluded water.

