|
CGAL 6.0 - Triangulated Surface Mesh Simplification
|
#include <CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Edge_count_stop_predicate.h>
StopPredicate The class Edge_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::Face_count_stop_predicate<TriangleMesh> CGAL::Surface_mesh_simplification::Edge_ratio_count_stop_predicate<TriangleMesh> Creation | |
| Edge_count_stop_predicate (const Edge_profile::edges_size_type threshold) | |
Initializes the predicate establishing the threshold value. | |
Operations | |
| bool | operator() (const Edge_profile::FT ¤t_cost, const Edge_profile &edge_profile, const Edge_profile::edges_size_type initial_edge_count, const Edge_profile::edges_size_type current_edge_count) const |
Returns (current_edge_count < threshold). | |
| bool CGAL::Surface_mesh_simplification::Edge_count_stop_predicate< TriangleMesh >::operator() | ( | const Edge_profile::FT & | current_cost, |
| const Edge_profile & | edge_profile, | ||
| const Edge_profile::edges_size_type | initial_edge_count, | ||
| const Edge_profile::edges_size_type | current_edge_count | ||
| ) | const |
Returns (current_edge_count < threshold).
All other parameters are ignored (but exist since this is a generic policy).