CGAL 6.1 - Classification

Loading...
Searching...
No Matches
List of all members | Public Types | Public Member Functions
CGAL::Classification::Face_descriptor_to_center_of_mass_map< FaceGraph, VertexPointMap > Class Template Reference
Reference Manual » Mesh Classification

`#include <CGAL/Classification/property_maps.h>`

## Definition

template<typename FaceGraph, typename VertexPointMap = typename boost::property_map<FaceGraph,vertex_point_t>::type>
class CGAL::Classification::Face_descriptor_to_center_of_mass_map< FaceGraph, VertexPointMap >

Property map that constructs the center of mass of the face of a mesh on-the-fly.

Is model of
  `ReadablePropertyMap`

Template Parameters

  FaceGraph | model of `FaceGraph`.
  VertexPointMap | model of `ReadablePropertyMap` with with `boost::graph_traits<FaceGraph>::vertex_descriptor` as key type and `CGAL::Point_3` as value type.

## Public Types
typedef boost::property_traits< VertexPointMap >::value_type | Point_3
typedef boost::graph_traits< FaceGraph >::face_descriptor | key_type
typedef Point_3 | value_type
typedef Point_3 | reference
typedef boost::readable_property_map_tag | category

## Public Member Functions
| Face_descriptor_to_center_of_mass_map ()
| Face_descriptor_to_center_of_mass_map (const FaceGraph *mesh)
| Face_descriptor_to_center_of_mass_map (const FaceGraph *mesh, VertexPointMap vpm)