-
I am trying to use CGAL to do some Delaunay triangulation. I used one of the CGAL samples to compute a triangulation which includes a height field attribute. The problem I have having is that I have no idea how to get the resulting triangulation. I figured out how to get the face_iterator, but I don't know what to do from there. What I'm hoping to get is an index into the point array for each of the 3 points on each triangle. Im just wanna get smth like: Triang: triangle1 = (1,2,3) triangle2 = (3,4,1) where numbers its a vertices HELP PLEASE!!! This is my code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
As documented here a face is a pair containing a cell and the id in the cell of the vertex opposite to that face. So you can access vertices of the face using:
This will give you handles to vertices of the facet. If you need input ids, then you have to use something like in this example. To access the id from a vertex handle, use |
Beta Was this translation helpful? Give feedback.
As documented here a face is a pair containing a cell and the id in the cell of the vertex opposite to that face. So you can access vertices of the face using:
This will give you handles to vertices of the facet.
If you need input ids, then you have to use something like in this example. To…