Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
nav_code1.cc
1 [...]
2 
3 TriMesh::HalfedgeHandle heh, heh_init;
4 
5 // Get the halfedge handle assigned to vertex[0]
6 heh = heh_init = mesh.halfedge_handle(vertex[0].handle());
7 
8 // heh now holds the handle to the initial halfedge.
9 // We now get further on the boundary by requesting
10 // the next halfedge adjacent to the vertex heh
11 // points to...
12 heh = mesh.next_halfedge_handle(heh);
13 
14 // We can do this as often as we want:
15 while(heh != heh_init) {
16  heh = mesh.next_halfedge_handle(heh);
17 }
18 
19 [...]