\( \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.10.2 - Triangulated Surface Mesh Simplification
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Surface_mesh_simplification::Midpoint_placement< ECM > Class Template Reference

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

Definition

The class Midpoint_placement is a model for the GetPlacement concept which computes the placement as the midpoint position along the edge.

Template Parameters
ECMis the type of surface mesh being simplified, and must be a model of the EdgeCollapsableSurfaceMesh concept.
Is Model Of:
GetPlacement

Creation

 Midpoint_placement ()
 Default constructor.
 

Operations

template<typename Profile >
optional< typename Profile::Point > operator() (Profile const &profile) const
 Returns the placement (vertex position) as the midpoint between the points of the source and target vertices (profile.p0() and profile.p1())