From the user manual of the CGAL Surface_mesh
class:
the data structure uses integer indices as descriptors for vertices, halfedges, edges and faces
I am interested in accessing a certain face/edge/vertex based on it's integer index, but cannot find how this is done.
Iterators obviously work, but I don't want to iterate a known number of times just to get to the relevant face_index
/vertex_index
if I can access based on an integer face/vertex index known a-priori.
Can someone please explain how (if actually possible) to use the integer indexing if I want to access the i-th face "directly" (without iterating)?
The following should work:
unsigned int i = 33;
Surface_mesh::Face_index fi(i);