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
This commit is contained in:
Jan Möbius
2011-10-07 15:01:51 +00:00
parent dfc4cb0915
commit 8cc50f96f6
2 changed files with 287 additions and 72 deletions

View File

@@ -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