12 lines
326 B
C++
12 lines
326 B
C++
|
|
MyMesh mesh;
|
||
|
|
|
||
|
|
// (linearly) iterate over all vertices
|
||
|
|
for (MyMesh::VertexIter v_it=mesh.vertices_begin(); v_it!=mesh.vertices_end(); ++v_it)
|
||
|
|
{
|
||
|
|
// circulate around the current vertex
|
||
|
|
for (MyMesh::VertexVertexIter vv_it=mesh.vv_iter(v_it.handle()); vv_it; ++vv_it)
|
||
|
|
{
|
||
|
|
// do something with e.g. mesh.point(*vv_it)
|
||
|
|
}
|
||
|
|
}
|