CGAL 5.6.3 - Triangulated Surface Mesh Simplification

Loading...
Searching...
No Matches
List of all members
CGAL::Surface_mesh_simplification::Midpoint_placement< TriangleMesh > Class Template Reference
Triangulated Surface Mesh Simplification Reference

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

## Definition

template<typename TriangleMesh>
class CGAL::Surface_mesh_simplification::Midpoint_placement< TriangleMesh >

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

Template Parameters

  TriangleMesh | is the type of surface mesh being simplified, and must be a model of the `MutableFaceGraph` and `HalfedgeListGraph` concepts.

Is Model Of:
  `GetPlacement`

## Creation
| Midpoint_placement ()
| Default constructor.

## Operations
boost::optional< typename Edge_profile::Point > | operator() (const Edge_profile &profile) const
| Returns the placement (vertex position) as the midpoint between the points of the source and target vertices (`profile.p0()` and `profile.p1()`)