CGAL - Generalized Maps

Loading...
Searching...
No Matches
Generalized_map/gmap_4_simple_example.cpp
#include <CGAL/Generalized_map.h>
#include <iostream>
#include <cstdlib>
#include <cassert>
typedef CGAL::Generalized_map<4> GMap_4;
typedef GMap_4::Dart_descriptor Dart_descriptor;
int main()
{
GMap_4 gm;
Dart_descriptor d1 = gm.make_combinatorial_tetrahedron();
Dart_descriptor d2 = gm.make_combinatorial_tetrahedron();
assert(gm.is_valid());
gm.sew<4>(d1,d2);
gm.display_characteristics(std::cout);
std::cout<<", valid="<<gm.is_valid()<<std::endl;
return EXIT_SUCCESS;
}
CGAL::Generalized_map
The class Generalized_map represents a dD generalized map.
Definition: Generalized_map.h:40