Go to the documentation of this file.
13 #include <boost/graph/graph_traits.hpp>
14 #include <boost/foreach.hpp>
31 template<
typename Descriptor,
33 typename MapType =
typename PropertyMap::value_type >
36 const PropertyMap &prop_map,
40 MapType l_metric =
get(prop_map, d);
41 if(min_metric > l_metric)
42 min_metric = l_metric;
43 if(max_metric < l_metric)
44 max_metric = l_metric;
58 template<
typename HalfedgeGraph,
60 typename MapType =
typename PropertyMap::value_type >
63 const PropertyMap &prop_map,
67 typedef typename boost::graph_traits< HalfedgeGraph >::face_descriptor
69 min_metric = (std::numeric_limits< MapType >::max)();
70 max_metric = (std::numeric_limits< MapType >::min)();
71 BOOST_FOREACH(Face_Descriptor f,
faces(g))
88 template<
typename HalfedgeGraph,
90 typename MapType =
typename PropertyMap::value_type >
93 const PropertyMap &prop_map,
100 min_metric = (std::numeric_limits< MapType >::max)();
101 max_metric = (std::numeric_limits< MapType >::min)();
119 template<
typename HalfedgeGraph,
120 typename PropertyMap,
121 typename MapType =
typename PropertyMap::value_type >
124 const PropertyMap &prop_map,
128 typedef typename boost::graph_traits< HalfedgeGraph >::halfedge_descriptor
130 min_metric = (std::numeric_limits< MapType >::max)();
131 max_metric = (std::numeric_limits< MapType >::min)();
133 BOOST_FOREACH(Halfedge_Descriptor h, halfedges(g))
std::pair< typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::vertex_iterator, typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::vertex_iterator > vertices(const FEVV::DataStructures::AIF::AIFMesh &sm)
Returns the iterator range of the vertices of the mesh.
void compute_min_max_vertices(const HalfedgeGraph &g, const PropertyMap &prop_map, MapType &min_metric, MapType &max_metric)
Compute min and max value of a numerical property map for the vertices of a mesh.
void compute_min_max_halfedges(const HalfedgeGraph &g, const PropertyMap &prop_map, MapType &min_metric, MapType &max_metric)
Compute min and max value of a numerical property map for the halfedges of a mesh.
MeshSurface::Vertex_index Vertex_Descriptor
FEVV::PCLPointCloudPointMap::value_type get(const FEVV::PCLPointCloudPointMap &pm, FEVV::PCLPointCloudPointMap::key_type key)
Specialization of get(point_map, key) for PCLPointCloud.
Interfaces for plugins These interfaces will be used for different plugins.
std::pair< typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::face_iterator, typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::face_iterator > faces(const FEVV::DataStructures::AIF::AIFMesh &sm)
Returns an iterator range over all faces of the mesh.
boost::graph_traits< MeshT >::vertex_descriptor vertex_descriptor
void compute_min_max_descriptor(const Descriptor &d, const PropertyMap &prop_map, MapType &min_metric, MapType &max_metric)
Generic call to compute min max from a Descriptor Get the value of the property map for the given des...
void compute_min_max_faces(const HalfedgeGraph &g, const PropertyMap &prop_map, MapType &min_metric, MapType &max_metric)
Compute min and max value of a numerical property map for the faces of a mesh.