CGAL::Surface_mesh_simplification::Midpoint_placement<ECM>

Definition

The class Surface_mesh_simplification::Midpoint_placement<ECM> provides a model for the GetPlacement concept. It computes the placement as the midpoint position along the edge.

The class Surface_mesh_simplification::Midpoint_placement<ECM> has one template arguments: the type of surface being simplified. It be a model of the EdgeCollapsableMesh concept.

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

Is Model for the Concepts

GetPlacement

Creation

Surface_mesh_simplification::Midpoint_placement<ECM> gp;
Default constructor

Operations

result_type gp.operator() ( Profile const& edge_profile) const
Returns the placement (vertex position) as the midpoint between the points of the source and target vertices (profile.p0() and profile.p1())