Commit 8cc50f96 authored by Jan Möbius's avatar Jan Möbius

Bugfix for #248 end circulator broken for VertexFaceIter

The vf_end function did not provide the correct end for the iteration.

Added unittest for two cases with VertexFaceIter (hour glass case and full case) 

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@415 fdac6126-5c0c-442c-9429-916003d36597
parent dfc4cb09
......@@ -1689,7 +1689,7 @@ class VertexFaceIterT
start_(_mesh.halfedge_handle(_start)),
heh_(start_),
lap_counter_(_end)
{ if (heh_.is_valid() && !handle().is_valid()) operator++();; }
{ if (heh_.is_valid() && !handle().is_valid() && !_end) operator++();; }
/// Construct with mesh and start halfedge
......@@ -1881,7 +1881,7 @@ class ConstVertexFaceIterT
start_(_mesh.halfedge_handle(_start)),
heh_(start_),
lap_counter_(_end)
{ if (heh_.is_valid() && !handle().is_valid()) operator++();; }
{ if (heh_.is_valid() && !handle().is_valid() && !_end) operator++();; }
/// Construct with mesh and start halfedge
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment