CGAL 5.4.4 - Triangulated Surface Mesh Simplification
|
The concept StopPredicate
describes the requirements for the predicate which indicates if the simplification process must finish.
Operations | |
bool | operator() (const Edge_profile::FT ¤t_cost, const Edge_profile &profile, const Edge_profile::edges_size_type initial_edge_count, const Edge_profile::edges_size_type current_edge_count) const |
This predicate is called each time an edge is selected for processing, before it is collapsed. More... | |
bool StopPredicate::operator() | ( | const Edge_profile::FT & | current_cost, |
const Edge_profile & | profile, | ||
const Edge_profile::edges_size_type | initial_edge_count, | ||
const Edge_profile::edges_size_type | current_edge_count | ||
) | const |
This predicate is called each time an edge is selected for processing, before it is collapsed.
current_edge_cost
is the cost of the selected edge. initial_edge_count
and current_edge_count
are the number of initial and current edges. If the return value is true
the simplification terminates before processing the edge, otherwise it continues normally.