.. # split from OESpicoliFunctions.rst:801


.. oe:namespace:: OESpicoli

.. meta::
   :keywords: OESurfaceCropToClique

.. oe:function:: OESurfaceCropToClique

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

      .. oe:api::

         bool OESurfaceCropToClique(OESurface& surf, unsigned int clique)

   .. oe:language:: python

      .. oe:api:: python

         OESurfaceCropToClique(surf: OESurface, clique: int) -> bool

   Trim surf of the triangles not marked with the vertex clique value
   clique. Zero is not a valid clique. See Section 2.3.1 on how vertex
   cliques are assigned to triangles. Returns true
   if successful.

   .. seealso::
   
      * The :ref:`manipulation_cliques` section on how vertex cliques
        are assigned to triangles.
      * The :ref:`generation_surfaces` section for an explanation of
        how Spicoli handles subset boundaries.

