stats.hh 431 Bytes
Newer Older
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