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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user