CGAL 6.0.1 - Triangulated Surface Mesh Simplification
|
#include <CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Count_ratio_stop_predicate.h>
Edge_count_ratio_stop_predicate
should be used instead.The class Count_ratio_stop_predicate
is a model for the StopPredicate
concept which returns true
when the relation between the initial and current number of edges drops below a certain ratio.
TriangleMesh | is the type of surface mesh being simplified, and must be a model of the MutableFaceGraph and HalfedgeListGraph concepts. |
StopPredicate
CGAL::Surface_mesh_simplification::Edge_count_ratio_stop_predicate<TriangleMesh>
CGAL::Surface_mesh_simplification::Face_count_ratio_stop_predicate<TriangleMesh>
Creation | |
Count_ratio_stop_predicate (const double ratio) | |
Initializes the predicate establishing the ratio . | |
Operations | |
bool | 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 (double(current_edge_count) / double(initial_edge_count)) < ratio . | |
bool CGAL::Surface_mesh_simplification::Count_ratio_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 (double(current_edge_count) / double(initial_edge_count)) < ratio
.
All other parameters are ignored (but exist since this is a generic policy).