CGAL 4.14.2 - Triangulated Surface Mesh Simplification
|
#include <CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Count_stop_predicate.h>
The class Count_stop_predicate
is a model for the StopPredicate
concept, which returns true
when the number of current edges drops below a certain threshold.
TriangleMesh | is the type of surface mesh being simplified, and must be a model of the MutableFaceGraph and HalfedgeListGraph concepts. |
CGAL::Surface_mesh_simplification::Count_ratio_stop_predicate<TriangleMesh>
Creation | |
Count_stop_predicate (size_type threshold) | |
Initializes the predicate establishing the threshold value. | |
Operations | |
bool | operator() (FT const ¤t_cost, Profile const &edge_profile, size_type initial_count, size_type current_count) const |
Returns (current_count < threshold) . More... | |
bool CGAL::Surface_mesh_simplification::Count_stop_predicate< TriangleMesh >::operator() | ( | FT const & | current_cost, |
Profile const & | edge_profile, | ||
size_type | initial_count, | ||
size_type | current_count | ||
) | const |
Returns (current_count < threshold)
.
All other parameters are ignored (but exist since this is a generic policy).