template<typename GeomTraits, typename PolygonMesh, typename VertexToPointMap = typename boost::property_map<PolygonMesh, CGAL::vertex_point_t>::const_type>
class CGAL::Shape_detection::Polygon_mesh::Face_area_sorting< GeomTraits, PolygonMesh, VertexToPointMap >
Sorting of polygon mesh faces with respect to their area.
Items of faces in a polygon mesh are sorted in decreasing area.
Template Parameters
GeomTraits a model of Kernel
PolygonMesh a model of FaceListGraph
VertexToPointMap a model of ReadablePropertyMap whose key type is the vertex type of a polygon mesh (boost::graph_traits<PolygonMesh>::vertex_descriptor) and value type is GeomTraits::Point_3
Examples Shape_detection/region_growing_lines_on_segment_set.cpp , and Shape_detection/region_growing_planes_on_polygon_mesh.cpp .
template<typename GeomTraits , typename PolygonMesh , typename VertexToPointMap = typename boost::property_map<PolygonMesh, CGAL::vertex_point_t>::const_type>
template<typename Dummy , typename NamedParameters = CGAL::parameters::Default_named_parameters>
initializes all internal data structures.
Three-parameter constructor with a dummy parameter provided for compatibility with other sorting types.
Template Parameters
Parameters
pmesh an instance of PolygonMesh that represents a polygon mesh
np a sequence of Named Parameters among the ones listed below
Optional Named Parameters
vertex_point_map
an instance of VertexToPointMap that maps a polygon mesh vertex (boost::graph_traits<PolygonMesh>::vertex_descriptor) to GeomTraits::Point_3
Default: boost::get(CGAL::vertex_point, pmesh)
geom_traits
an instance of GeomTraits
Default: GeomTraits()
Precondition faces(pmesh).size() > 0