CGAL 5.6.1 - Triangulated Surface Mesh Approximation
ErrorMetricProxy Concept Reference


The concept ErrorMetricProxy defines the notion of proxy, computes the fitting error from a face to a proxy, and fits a proxy from a range of faces.

Has Models:



Public Types

typedef unspecified_type FT
 Number type model of Field and RealEmbeddable
typedef unspecified_type Triangle_mesh
 Triangle mesh.
typedef unspecified_type face_descriptor
 Triangle mesh face descriptor.
typedef unspecified_type Proxy
 Shape proxy type.


A model of this concept must provide:

FT compute_error (const face_descriptor f, const Triangle_mesh &tm, const Proxy &proxy) const
 returns fitting error from face f to proxy.
template<typename FaceRange >
Proxy fit_proxy (const FaceRange &faces, const Triangle_mesh &tm) const
 returns a fitted proxy to a range of faces. More...

Member Function Documentation

◆ fit_proxy()

template<typename FaceRange >
Proxy ErrorMetricProxy::fit_proxy ( const FaceRange &  faces,
const Triangle_mesh tm 
) const

returns a fitted proxy to a range of faces.

Template Parameters
FaceRangea range of boost::graph_traits<TriangleMesh>::face_descriptor model of ConstRange with iterator type being model of InputIterator.