#include #include #include #include typedef CGAL::Generalized_map<3> GMap_3; typedef CGAL::Combinatorial_map<3> CMap_3; typedef GMap_3::Dart_descriptor Dart_const_descriptor; template void test(Map& m) { // Create two tetrahedra. typename Map::Dart_descriptor d1 = m.make_combinatorial_tetrahedron(); typename Map::Dart_descriptor d2 = m.make_combinatorial_tetrahedron(); m.template sew<3>(d1, d2); // Display the map characteristics. m.display_characteristics(std::cout); std::cout<<", valid="<::const_iterator it(m.template darts_of_cell<3>(d1).begin()), itend(m.template darts_of_cell<3>(d1).end()); it!=itend; ++it) ++res; std::cout<<"Number of darts of the first tetrahedron: "<::const_iterator it(m.template darts_of_cell<2>(d1).begin()), itend(m.template darts_of_cell<2>(d1).end()); it!=itend; ++it) ++res; std::cout<<"Number of darts of the face incident to d1: "<