Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

stats.hh

00001 #ifndef STATS_HH
00002 #define STATS_HH
00003 
00004 template <typename Mesh>
00005 void mesh_stats( Mesh& _m, const std::string& prefix = "" )
00006 {
00007   std::cout << prefix
00008             << _m.n_vertices() << " vertices, "
00009             << _m.n_edges() << " edges, "
00010             << _m.n_faces() << " faces\n";
00011 }
00012 
00013 template <typename Mesh>
00014 void mesh_property_stats(Mesh& _m)
00015 {
00016   std::cout << "Current set of properties:\n";
00017   _m.property_stats(std::cout);
00018 }
00019 
00020 #endif

acg pic Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .