CGAL 5.5.5 - Classification
CGAL::Classification::Face_descriptor_to_center_of_mass_map< FaceGraph, VertexPointMap > Class Template Reference

#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
FaceGraphmodel of FaceGraph.
VertexPointMapmodel 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)