2009-02-06 13:37:46 +00:00
|
|
|
MyMesh mesh;
|
|
|
|
|
|
|
|
|
|
// (linearly) iterate over all vertices
|
2011-10-10 12:52:28 +00:00
|
|
|
for (MyMesh::VertexIter v_it=mesh.vertices_sbegin(); v_it!=mesh.vertices_end(); ++v_it)
|
2009-02-06 13:37:46 +00:00
|
|
|
{
|
|
|
|
|
// 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)
|
|
|
|
|
}
|
|
|
|
|
}
|