CGAL 5.6.1 - Triangulated Surface Mesh Approximation
ErrorMetricProxy Concept Reference

Definition

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:

CGAL::Surface_mesh_approximation::L21_metric_plane_proxy

CGAL::Surface_mesh_approximation::L2_metric_plane_proxy

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.
 

Operations

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.