\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.13.2 - Triangulated Surface Mesh Simplification
CGAL::Surface_mesh_simplification::Edge_length_stop_predicate< FT > Class Template Reference

#include <CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Edge_length_stop_predicate.h>

Definition

The class Edge_length_stop_predicate is a model for the StopPredicate concept, which returns true when the top edge in the priority queue is larger than a certain threshold.

This predicate is meant to be used with Edge_length_cost.

Template Parameters
FTis the number type of the point coordinates.
Is Model Of:
StopPredicate
Examples:
Surface_mesh_simplification/edge_collapse_all_short_edges.cpp.

Creation

 Edge_length_stop_predicate (FT threshold)
 Initializes the predicate establishing the threshold value.
 

Operations

bool operator() (FT const &, Profile const &edge_profile, size_type, size_type) const
 Returns (CGAL::squared_distance(edge_profile.p0(),edge_profile.p1()) > threshold*threshold). More...
 

Member Function Documentation

◆ operator()()

template<typename FT >
bool CGAL::Surface_mesh_simplification::Edge_length_stop_predicate< FT >::operator() ( FT const &  ,
Profile const &  edge_profile,
size_type  ,
size_type   
) const

Returns (CGAL::squared_distance(edge_profile.p0(),edge_profile.p1()) > threshold*threshold).

All other parameters are ignored (but exist since this is a generic policy).