CGAL 6.0 - Triangulated Surface Mesh Simplification
Loading...
Searching...
No Matches
CGAL::Surface_mesh_simplification::LindstromTurk_cost< TriangleMesh > Class Template Reference

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

Definition

template<typename TriangleMesh>
class CGAL::Surface_mesh_simplification::LindstromTurk_cost< TriangleMesh >

The class LindstromTurk_cost provides a model for the GetCost concept.

It computes the collapse cost following the Lindstrom-Turk strategy (Section Lindstrom-Turk Cost and Placement Strategy)

Template Parameters
TriangleMeshis the type of surface mesh being simplified, and must be a model of the MutableFaceGraph and HalfedgeListGraph concepts.
Is model of
GetCost
See also
CGAL::Surface_mesh_simplification::LindstromTurk_placement<TriangleMesh>

Creation

 LindstromTurk_cost (const FT factor=FT(0.5))
 Initializes the policy with the given weighting unit factor.
 

Operations

std::optional< typename Edge_profile::FToperator() (const Edge_profile &edge_profile, const std::optional< typename Edge_profile::Point > &placement) const
 Returns the cost of collapsing the edge (represented by its profile) considering the new placement computed for it.
 

Constructor & Destructor Documentation

◆ LindstromTurk_cost()

template<typename TriangleMesh >
CGAL::Surface_mesh_simplification::LindstromTurk_cost< TriangleMesh >::LindstromTurk_cost ( const FT  factor = FT(0.5))

Initializes the policy with the given weighting unit factor.

See Lindstrom-Turk Cost and Placement Strategy for details on the meaning of this factor.