CGAL::Surface_mesh_simplification::Edge_length_cost<ECM>

Definition

The class Surface_mesh_simplification::Edge_length_cost<ECM> provides a model for the GetCost concept. It has one template argument: the type of surface being simplified, which must be a model of the EdgeCollapsableMesh concept. It computes the collapse cost as the squared length of the edge.

#include <CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Edge_length_cost.h>

Is Model for the Concepts

GetCost

Creation

Surface_mesh_simplification::Edge_length_cost<ECM> gc;
Default constructor

Operations

result_type gc.operator() ( Profile const& profile, boost::optional<Point> 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.