CGAL 4.12.2 - Triangulated Surface Mesh Simplification
|
#include <CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Edge_length_cost.h>
The class Edge_length_cost
is a model for the GetCost
concept, which computes the collapse cost as the squared length of the edge.
ECM | is the type of surface mesh being simplified, and must be a model of the EdgeCollapsableSurfaceMesh concept. |
Creation | |
Edge_length_cost () | |
Default constructor. | |
Operations | |
template<typename Profile , typename T > | |
optional< typename Profile::FT > | operator() (Profile const &profile, T const &placement) const |
Returns the collapse cost as the squared distance between the points of the source and target vertices (that is, profile.p0() and profile.p1() . More... | |
optional<typename Profile::FT> CGAL::Surface_mesh_simplification::Edge_length_cost< ECM >::operator() | ( | Profile const & | profile, |
T const & | placement | ||
) | const |
Returns the collapse cost as the squared distance between the points of the source and target vertices (that is, profile.p0()
and profile.p1()
.
The placement
argument is ignored.