Files
openmesh/Doc/Examples/circulators.cc

12 lines
326 B
C++
Raw Normal View History

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)
}
}