CGAL::Surface_mesh_simplification::Count_ratio_stop_predicate<ECM>
Definition
The class Surface_mesh_simplification::Count_ratio_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 relation between the initial and current number
of edges drops below a certain ratio.
#include <CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Count_ratio_stop_predicate.h>
Is Model for the Concepts
StopPredicate
Creation
Surface_mesh_simplification::Count_ratio_stop_predicate<ECM> sp ( double ratio);
|
|
Initializes the predicate establishing the ratio.
|
Operations
bool
|
sp.operator() ( |
FT const& current_cost,
Profile const& edge_profile,
size_type initial_count,
size_type current_count) |
const
|
| |
Returns .
All other parameters are ignored (but exist since this is a generic policy).
|
See Also
CGAL::Surface_mesh_simplification::Count_stop_predicate<ECM>