#include <CGAL/Combinatorial_map.h>
#include <iostream>
#include <cstdlib>
typedef CMap_3::Dart_const_descriptor Dart_const_descriptor;
int main()
{
CMap_3 cm;
Dart_const_descriptor d1 = cm.make_combinatorial_tetrahedron();
Dart_const_descriptor d2 = cm.make_combinatorial_tetrahedron();
cm.display_characteristics(std::cout);
std::cout<<", valid="<<cm.is_valid()<<std::endl;
unsigned int res = 0;
for (CMap_3::Dart_of_orbit_range<1,2>::const_iterator
it(cm.darts_of_orbit<1,2>(d1).begin()),
itend(cm.darts_of_orbit<1,2>(d1).end()); it!=itend; ++it)
++res;
std::cout<<"Number of darts of the first tetrahedron: "<<res<<std::endl;
res = 0;
for (CMap_3::Dart_of_orbit_range<1>::const_iterator
it(cm.darts_of_orbit<1>(d2).begin()),
itend(cm.darts_of_orbit<1>(d2).end()); it!=itend; ++it)
++res;
std::cout<<"Number of darts of the facet containing d2: "<<res<<std::endl;
return EXIT_SUCCESS;
}
The class Combinatorial_map represents a dD combinatorial map.
Definition: Combinatorial_map.h:39