CGAL::Surface_mesh_simplification::Count_stop_predicate<ECM>

Definition

The class Surface_mesh_simplification::Count_stop_predicate<ECM> provides a model for the StopPredicate concept. It has one template argument: the type of surface being simplified, which must be a model of the EdgeCollapsableMesh concept. It returns true when the number of current edges drops below a certain threshold.

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

Is Model for the Concepts

StopPredicate

Creation

Surface_mesh_simplification::Count_stop_predicate<ECM> sp ( size_type threshold);
Initializes the predicate establishing the threshold value.

Operations

bool
sp.operator() ( FT const& current_cost,
Profile const& edge_profile,
size_type initial_count,
size_type current_count)
const
Returns (currentcount < threshold). All other parameters are ignored (but exist since this is a generic policy).

See Also

CGAL::Surface_mesh_simplification::Count_ratio_stop_predicate<ECM>