Search code examples
triangulationcgal

Access all tetrahedrons incident on a vertex


I would like to know that how can we access all tetrahedrons incident on a vertex in a CGAL 3D triangulation?

I have seen cell() function for vertex, but it seems to allow access to one(arbitrarily selected?) tetrahedron only.


Solution

  • I had trouble using the incident_cells() function as I was not sure how to use the OutputIterators. This CGAL forum discussion exactly answers my question(with a code example).