.. # split from OESpicoliFunctions.rst:358


.. oe:namespace:: OESpicoli

.. meta::
   :keywords: OEMakeConnectedSurfaceCliques

.. oe:function:: OEMakeConnectedSurfaceCliques

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

      .. oe:api::

         unsigned int OEMakeConnectedSurfaceCliques(OESurface& surf)

   .. oe:language:: python

      .. oe:api:: python

         OEMakeConnectedSurfaceCliques(surf: OESurface) -> int


..  _make-connected-surface-cliques-example:

   Assigns a different clique value, starting at 1, to each connected
   component of the surface. The number of connected components is
   returned. :oe:src:`Listing
   2<SNIPPET-MaxClique-MakeConnectedSurfaceCliques>` demonstrates
   cropping a surface to its largest component.
  
   .. oe:source:: MakeConnectedSurfaceCliques.cpp
      :language: c++
      :noindent:
      :frag:     SNIPPET-MaxClique
      :caption: Extracting the largest portion of the surface
      :refnum: 2

   .. oe:source:: MakeConnectedSurfaceCliques.py
      :language: python
      :frag:     SNIPPET-MaxClique
      :caption: Extracting the largest portion of the surface
      :refnum: 2

   ..  oe:language:: python

       :ref:`Full listing. <listing-MakeConnectedSurfaceCliques.py>`



   .. oe:source:: MakeConnectedSurfaceCliques.java
      :language: java
      :noindent:
      :frag:     SNIPPET-MaxClique
      :caption: Extracting the largest portion of the surface
      :refnum: 2   

   .. oe:source:: MakeConnectedSurfaceCliques.cs
      :language: csharp
      :noindent:
      :frag:     SNIPPET-MaxClique
      :caption: Extracting the largest portion of the surface
      :refnum: 2   

