File: stats.hh

package info (click to toggle)
openmesh 11.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,080 kB
  • sloc: cpp: 56,379; ansic: 5,600; perl: 1,374; sh: 119; makefile: 18
file content (20 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef STATS_HH
#define STATS_HH

template <typename Mesh>
void mesh_stats( Mesh& _m, const std::string& prefix = "" )
{
  std::cout << prefix
            << _m.n_vertices() << " vertices, "
            << _m.n_edges() << " edges, "
            << _m.n_faces() << " faces\n";
}

template <typename Mesh>
void mesh_property_stats(Mesh& _m)
{
  std::cout << "Current set of properties:\n";
  _m.property_stats(std::cout);
}

#endif