0

Not sure if the question is already answered. I am working with tethedral mesh (medit mesh) file with CGAL. I need to find out the faces around the vertices in this mesh. So it will be a vertex-face iterator. Does anyone know if CGAL has this kind of iterator?

Muhammad Razib
  • 1,297
  • 9
  • 13
  • It's a bit tricky using the `C3T3` directly. Do you need the incident faces for each vertex? – sloriot Aug 06 '15 at 21:15
  • I need the incident tetrahedrons. – Muhammad Razib Aug 06 '15 at 23:13
  • If you need to do that for all vertices, in most cases you can iterate on the tets then iterate on the vertices of each tet (swap the two nested loops), in most cases it makes the code much simpler and much much faster (it does not apply if you need to do that for a single vertex) – BrunoLevy Aug 31 '15 at 14:03

1 Answers1

1

You can use the function finite_incident_cells and test whether the cells are in the complex using is_in_complex.

sloriot
  • 6,070
  • 18
  • 27