How to extract face information from Linear_cell_complex_for_combinatorial_map in CGAL?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to extract face information from Linear_cell_complex_for_combinatorial_map in CGAL?

mato
This post was updated on .
I was trying to create a hexahedron mesh using CGAL. So far I was able to
create a hexaheron, but was unable to extract face and edge info from it (so that I can create a obj or vtk file and view it). I
was able to extract vertices information though using
point_of_vertex_attribute

typedef CGAL::Linear_cell_complex_for_combinatorial_map<3> LCC;
typedef LCC::Point Point;

.....

Dart_handle dh1 = lcc.make_hexahedron(
      Point(0, 0, 0), Point(5, 0, 0), Point(5, 5, 0), Point(0, 5, 0),
      Point(0, 5, 4), Point(0, 0, 4), Point(5, 0, 4), Point(5, 5, 4));
  Dart_handle dh2 = lcc.make_hexahedron(
      Point(5, 0, 0), Point(10, 0, 0), Point(10, 5, 0), Point(5, 5, 0),
      Point(5, 5, 4), Point(5, 0, 4), Point(10, 0, 4), Point(10, 5, 4));
  lcc.sew<3>(lcc.beta(dh1, 1, 1, 2), lcc.beta(dh2, 2));

There was one post on stackoverflow where the OP is trying to extract face from but uses Nef_polyhedron. (https://stackoverflow.com/questions/48809669/how-to-get-the-vertices-and-the-faces-of-a-polygon-mesh-with-cgal). I was wondering if there is a way to extract faces without using Nef_polyhedron.

--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss