\( \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.3 - Triangulated Surface Mesh Simplification
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
GetCost Concept Reference

Definition

The concept GetCost describes the requirements for the policy function object which gets the collapse cost of an edge.

The cost returned is a boost::optional value (i.e. it can be absent). An absent cost indicates that the edge should not be collapsed. This could be the result of a computational limitation (such as overflow), or can be intentionally returned to prevent the edge from being collapsed.

Refines:

DefaultConstructible

CopyConstructible

Has Models:

CGAL::Surface_mesh_simplification::Edge_length_cost<ECM>

CGAL::Surface_mesh_simplification::LindstromTurk_cost<ECM>

Types

typedef unspecified_type Profile
 The type of the edge profile cache. More...
 
typedef unspecified_type FT
 A field type representing the collapse cost.
 
CGAL::halfedge_graph_traits
< ECM >::Point 
Point
 The point type for the surface vertex. More...
 
boost::optional< FTresult_type
 The type of the result (an optional cost value).
 

Operations

result_type operator() (Profile const &edge_profile, boost::optional< Point > const &placement) const
 Computes and returns the cost of collapsing the edge (represented by its profile), using the calculated placement.
 

Member Typedef Documentation

The type of the edge profile cache.

Must be a model of the EdgeProfile concept.

Member Data Documentation

CGAL::halfedge_graph_traits<ECM>::Point GetCost::Point

The point type for the surface vertex.

Must be a model of Point_3.