-
an instance of
VertexToPointMap
that maps a polygon mesh vertex toKernel::Point_3
-
Default:
boost::get(CGAL::vertex_point, pmesh)
CGAL 5.6.1 - Shape Detection
|
#include <CGAL/Shape_detection/Region_growing/Polygon_mesh/Least_squares_plane_fit_sorting.h>
Sorting of polygon mesh faces with respect to the local plane fit quality.
Items
of faces in a polygon mesh are sorted with respect to the quality of the least squares plane fit applied to the vertices of incident faces of each face.
GeomTraits | a model of Kernel |
PolygonMesh | a model of FaceListGraph |
NeighborQuery | a model of NeighborQuery |
VertexToPointMap | a model of ReadablePropertyMap whose key type is the vertex type of a polygon mesh and value type is Kernel::Point_3 |
Types | |
using | Item = typename boost::graph_traits< PolygonMesh >::face_descriptor |
Item type. | |
using | Seed_range = std::vector< Item > |
Seed range. | |
Initialization | |
template<typename NamedParameters = CGAL::parameters::Default_named_parameters> | |
Least_squares_plane_fit_sorting (const PolygonMesh &pmesh, NeighborQuery &neighbor_query, const NamedParameters &np=parameters::default_values()) | |
initializes all internal data structures. More... | |
Sorting | |
void | sort () |
sorts Items of input faces. | |
Access | |
const Seed_range & | ordered () |
returns an instance of Seed_range to access the ordered Items of input faces. | |
CGAL::Shape_detection::Polygon_mesh::Least_squares_plane_fit_sorting< GeomTraits, PolygonMesh, NeighborQuery, VertexToPointMap >::Least_squares_plane_fit_sorting | ( | const PolygonMesh & | pmesh, |
NeighborQuery & | neighbor_query, | ||
const NamedParameters & | np = parameters::default_values() |
||
) |
initializes all internal data structures.
NamedParameters | a sequence of Named Parameters |
pmesh | an instance of PolygonMesh that represents a polygon mesh |
neighbor_query | an instance of NeighborQuery that is used internally to access face's neighbors |
np | a sequence of Named Parameters among the ones listed below |
| |
|
faces(pmesh).size() > 0