OpenMesh
stats.hh
1#ifndef STATS_HH
2#define STATS_HH
3
4template <typename Mesh>
5void mesh_stats( Mesh& _m, const std::string& prefix = "" )
6{
7 std::cout << prefix
8 << _m.n_vertices() << " vertices, "
9 << _m.n_edges() << " edges, "
10 << _m.n_faces() << " faces\n";
11}
12
13template <typename Mesh>
14void mesh_property_stats(Mesh& _m)
15{
16 std::cout << "Current set of properties:\n";
17 _m.property_stats(std::cout);
18}
19
20#endif

Project OpenMesh, ©  Visual Computing Institute, RWTH Aachen. Documentation generated using doxygen .