template<typename TriangleMesh, typename VertexPointMap = typename boost::property_map<TriangleMesh, boost::vertex_point_t>::type, typename GeomTraits = typename Kernel_traits<typename boost::property_traits<VertexPointMap>::value_type>::Kernel>
class CGAL::Surface_mesh_approximation::L2_metric_plane_proxy< TriangleMesh, VertexPointMap, GeomTraits >
Approximation L2 metric of plane proxy.
- Is Model Of:
ErrorMetricProxy
- Template Parameters
-
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 |
template<typename TriangleMesh , typename VertexPointMap = typename boost::property_map<TriangleMesh, boost::vertex_point_t>::type, typename GeomTraits = typename Kernel_traits<typename boost::property_traits<VertexPointMap>::value_type>::Kernel>
template<typename FaceRange >
fits a proxy from a range of faces, in the L2 sense, with an integral (closed-form) formulation.
The best-fit plane passes through the center of mass and is defined by the two principal components of the integral covariance matrix.
- Template Parameters
-
FaceRange | range of face descriptors, model of Range. |
- Parameters
-
faces | the range of faces to be fitted |
tm | input triangle mesh |
- Returns
- fitted proxy