CGAL 6.0.1 - Triangulated Surface Mesh Approximation
|
#include <CGAL/Surface_mesh_approximation/L21_metric_plane_proxy.h>
Approximation L21 metric of vector proxy.
ErrorMetricProxy
TriangleMesh | a triangle FaceGraph |
VertexPointMap | a class model of ReadablePropertyMap with boost::graph_traits<TriangleMesh>::vertex_descriptor as key type, GeomTraits::Point_3 as value type |
GeomTraits | a model of Kernel |
Public Member Functions | |
FT | compute_error (const face_descriptor f, const TriangleMesh &tm, const Proxy &px) const |
computes the L2,1 error from a face to a proxy. | |
template<typename FaceRange > | |
Proxy | fit_proxy (const FaceRange &faces, const TriangleMesh &tm) const |
fits a proxy to a range of faces. | |
Types | |
typedef GeomTraits::Vector_3 | Proxy |
Proxy type. | |
Constructor | |
L21_metric_plane_proxy (const TriangleMesh &tm, const VertexPointMap &vpmap) | |
Constructor. | |
CGAL::Surface_mesh_approximation::L21_metric_plane_proxy< TriangleMesh, VertexPointMap, GeomTraits >::L21_metric_plane_proxy | ( | const TriangleMesh & | tm, |
const VertexPointMap & | vpmap | ||
) |
Constructor.
tm | triangle mesh |
vpmap | vertex point map |
FT CGAL::Surface_mesh_approximation::L21_metric_plane_proxy< TriangleMesh, VertexPointMap, GeomTraits >::compute_error | ( | const face_descriptor | f, |
const TriangleMesh & | tm, | ||
const Proxy & | px | ||
) | const |
computes the L2,1 error from a face to a proxy.
tm | input triangle mesh |
f | face_descriptor of a face |
px | proxy |
Proxy CGAL::Surface_mesh_approximation::L21_metric_plane_proxy< TriangleMesh, VertexPointMap, GeomTraits >::fit_proxy | ( | const FaceRange & | faces, |
const TriangleMesh & | tm | ||
) | const |
fits a proxy to a range of faces.
FaceRange | range of face descriptors, model of Range. |
faces | the range of faces to be fitted |
tm | input triangle mesh |