|
CGAL 6.0 - 2D Polyline Simplification
|
#include <CGAL/Polyline_simplification_2/Stop_below_count_threshold.h>
This class is a stop predicate returning true when the number of vertices is smaller than a certain threshold.
PolylineSimplificationStopPredicate Public Member Functions | |
| Stop_below_count_threshold (std::size_t threshold) | |
| Initializes it with the given threshold value. | |
| template<class CDT > | |
| bool | operator() (const Constrained_triangulation_plus_2< CDT > &, typename Constrained_triangulation_plus_2< CDT >::Vertex_handle, typename CDT::Geom_traits::FT, std::size_t, std::size_t current_count) const |
Returns true when current_count is smaller or equal than the threshold. | |
| bool CGAL::Polyline_simplification_2::Stop_below_count_threshold::operator() | ( | const Constrained_triangulation_plus_2< CDT > & | , |
| typename Constrained_triangulation_plus_2< CDT >::Vertex_handle | , | ||
| typename CDT::Geom_traits::FT | , | ||
| std::size_t | , | ||
| std::size_t | current_count | ||
| ) | const |
Returns true when current_count is smaller or equal than the threshold.
| CDT | must be CGAL::Constrained_Delaunay_triangulation_2 with a vertex type that is model of PolylineSimplificationVertexBase_2. |