git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@426 fdac6126-5c0c-442c-9429-916003d36597
12 lines
327 B
C++
12 lines
327 B
C++
MyMesh mesh;
|
|
|
|
// (linearly) iterate over all vertices
|
|
for (MyMesh::VertexIter v_it=mesh.vertices_sbegin(); 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)
|
|
}
|
|
}
|