CGAL 5.6.1 - 2D Polyline Simplification
CGAL::Polyline_simplification_2::Stop_above_cost_threshold Class Reference

#include <CGAL/Polyline_simplification_2/Stop_above_cost_threshold.h>

Definition

This class is a stop predicate returning true when the cost for simplifying a vertex is greater than a certain threshold.

Is Model Of:
PolylineSimplificationStopPredicate.

Public Member Functions

 Stop_above_cost_threshold (double 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 cost, std::size_t, std::size_t) const
 Returns true when cost is smaller or equal than the threshold. More...
 

Member Function Documentation

◆ operator()()

template<class CDT >
bool CGAL::Polyline_simplification_2::Stop_above_cost_threshold::operator() ( const Constrained_triangulation_plus_2< CDT > &  ,
typename Constrained_triangulation_plus_2< CDT >::Vertex_handle  ,
typename CDT::Geom_traits::FT  cost,
std::size_t  ,
std::size_t   
) const

Returns true when cost is smaller or equal than the threshold.

Template Parameters
CDTmust be CGAL::Constrained_Delaunay_triangulation_2 with a vertex type that is model of PolylineSimplificationVertexBase_2.