First checkin for OpenMesh 2.0
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@2 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
11
Doc/Examples/circulators.cc
Normal file
11
Doc/Examples/circulators.cc
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user