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

Definition

The concept GetPlacement describes the requirements for the policy function object which gets the collapse placement of an edge, that is, the new position of the vertex that remains after a halfedge-collapse operation.

The placement returned is a boost::optional value (i.e., it can be absent). An absent result indicates that the remaining vertex must be kept in place, not moved to a new position.

Refines:
CopyConstructible
Has Models:

CGAL::Surface_mesh_simplification::Midpoint_placement<ECM>

CGAL::Surface_mesh_simplification::LindstromTurk_placement<ECM>

Operations

template<class Profile >
boost::optional< Point > operator() (Profile const &edge_profile) const
 Computes and returns the placement, that is, the position of the vertex which replaces the collapsing edge (represented by its profile). More...
 

Member Function Documentation

template<class Profile >
boost::optional<Point> GetPlacement::operator() ( Profile const &  edge_profile) const

Computes and returns the placement, that is, the position of the vertex which replaces the collapsing edge (represented by its profile).

Template Parameters
Profilemust be a model of EdgeProfile.