FunctionObjectConcept

GetPlacement

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

DefaultConstructible
CopyConstructible

Types

GetPlacement::Profile
The type of the edge profile cache. Must be a model of the EdgeProfile concept.

typename CGAL::halfedge_graph_traits<ECM>::Point
Point; The point type for the surface vertex. Must be a model of Point_3.
boost::optional<Point> result_type; The type of the result (an optional point).

Operations

result_type gp.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).

Has Models

CGAL::Surface_mesh_simplification::Midpoint_placement<ECM>
CGAL::Surface_mesh_simplification::LindstromTurk_placement<ECM>