Fix a bug in TopoEdgeFlip::UpdateHeap (walking a around a border vertex).

This commit is contained in:
Paolo Cignoni 2008-05-06 12:05:55 +00:00
parent 629e129152
commit 89d09cb1b4
1 changed files with 8 additions and 0 deletions

View File

@ -564,6 +564,10 @@ public:
do { // go to the first border (if there is one)
pos.NextE();
} while(pos != startpos && !pos.IsBorder());
// if a border is reached, set startpos here
if(pos.IsBorder())
startpos = pos;
do {
VertexPointer v = pos.VFlip();
@ -580,6 +584,10 @@ public:
do { // go to the first border (if there is one)
pos.NextE();
} while(pos != startpos && !pos.IsBorder());
// if a border is reached, set startpos here
if(pos.IsBorder())
startpos = pos;
do {
VertexPointer v = pos.VFlip();