CGAL::Surface_mesh_simplification::LindstromTurk_cost<ECM>

Definition

The class Surface_mesh_simplification::LindstromTurk_cost<ECM> provides a model for the GetCost concept. It computes the collapse cost following the Lindstrom-Turk strategy (Section 51.3.1)

The class Surface_mesh_simplification::LindstromTurk_cost<ECM> has one template argument: the type of surface being simplified. It must be a model of the EdgeCollapsableMesh concept.

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

Is Model for the Concepts

GetCost

Creation

Surface_mesh_simplification::LindstromTurk_cost<ECM> gc ( FT factor = FT(0.5));
Initializes the policy with the given weighting unit factor. See 51.3.1 for details on the meaning of this factor.

Operations

result_type gc.operator() ( Profile const& profile, boost::optional<Point> const& placement) const
Returns the cost of collapsing the edge (represented by its profile) considering the new placement computed for it.

See Also

CGAL::Surface_mesh_simplification::LindstromTurk_placement<ECM>