
template<typename PolygonMesh , typename FaceOutputIterator , typename NamedParameters = parameters::Default_named_parameters> 
FaceOutputIterator  CGAL::Polygon_mesh_processing::connected_component (typename boost::graph_traits< PolygonMesh >::face_descriptor seed_face, const PolygonMesh &pmesh, FaceOutputIterator out, const NamedParameters &np=parameters::default_values()) 
 discovers all the faces in the same connected component as seed_face and records them in out .


template<typename PolygonMesh , typename FaceComponentMap , typename NamedParameters = parameters::Default_named_parameters> 
boost::property_traits< FaceComponentMap >::value_type  CGAL::Polygon_mesh_processing::connected_components (const PolygonMesh &pmesh, FaceComponentMap fcm, const NamedParameters &np=parameters::default_values()) 
 computes for each face the index of the corresponding connected component.


template<typename PolygonMesh , typename NamedParameters = parameters::Default_named_parameters> 
std::size_t  CGAL::Polygon_mesh_processing::keep_largest_connected_components (PolygonMesh &pmesh, std::size_t nb_components_to_keep, const NamedParameters &np=parameters::default_values()) 
 removes the small connected components and all isolated vertices.


template<typename PolygonMesh , typename ThresholdValueType , typename NamedParameters = parameters::Default_named_parameters> 
std::size_t  CGAL::Polygon_mesh_processing::keep_large_connected_components (PolygonMesh &pmesh, const ThresholdValueType threshold_value, const NamedParameters &np=parameters::default_values()) 
 removes connected components whose size is (strictly) smaller than a given threshold value, where the size of a connected component is computed as the sum of the individual sizes of all the faces of the connected component.


template<typename PolygonMesh , typename ComponentRange , typename FaceComponentMap , typename NamedParameters = parameters::Default_named_parameters> 
void  CGAL::Polygon_mesh_processing::keep_connected_components (PolygonMesh &pmesh, const ComponentRange &components_to_keep, const FaceComponentMap &fcm, const NamedParameters &np) 
 keeps the connected components designated by theirs ids in components_to_keep , and removes the other connected components as well as all isolated vertices.


template<typename PolygonMesh , typename ComponentRange , typename FaceComponentMap , typename NamedParameters = parameters::Default_named_parameters> 
void  CGAL::Polygon_mesh_processing::remove_connected_components (PolygonMesh &pmesh, const ComponentRange &components_to_remove, const FaceComponentMap &fcm, const NamedParameters &np=parameters::default_values()) 
 removes in pmesh the connected components designated by theirs ids in components_to_remove as well as all isolated vertices.


template<typename PolygonMesh , typename FaceRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> 
void  CGAL::Polygon_mesh_processing::remove_connected_components (PolygonMesh &pmesh, const FaceRange &components_to_remove, const NamedParameters &np=parameters::default_values()) 
 keeps the connected components not designated by the faces in components_to_remove , and removes the other connected components and all isolated vertices.


template<typename PolygonMesh , typename FaceRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> 
void  CGAL::Polygon_mesh_processing::keep_connected_components (PolygonMesh &pmesh, const FaceRange &components_to_keep, const NamedParameters &np=parameters::default_values()) 
 keeps the connected components designated by the faces in components_to_keep , and removes the other connected components and all isolated vertices.


template<class PolygonMesh , class PolygonMeshRange , class NamedParameters = parameters::Default_named_parameters> 
void  CGAL::Polygon_mesh_processing::split_connected_components (const PolygonMesh &pmesh, PolygonMeshRange &cc_meshes, const NamedParameters &np=parameters::default_values()) 
 identifies the connected components of pmesh and pushes back a new PolygonMesh for each connected component in cc_meshes .

