removed a small bug in the link condition

This commit is contained in:
Paolo Cignoni 2010-09-02 22:23:10 +00:00
parent fc27271fc9
commit f55d7a0048
1 changed files with 3 additions and 3 deletions

View File

@ -206,14 +206,14 @@ class EdgeCollapse
}
}
// Final loop to find cardinality of lk( V0-V1 )
// Final loop to find cardinality of Lk( V0-V1 )
// Note that Lk(edge) is only a set of vertices.
std::vector<VertexPointer> LkEdge;
for( vfi = VFIterator(pos.V(0)); !vfi.End(); ++vfi)
{
if(vfi.V1() == pos.V(1) ) LkEdge.push_back(pos.V(2));
if(vfi.V2() == pos.V(1) ) LkEdge.push_back(pos.V(1));
if(vfi.V1() == pos.V(1) ) LkEdge.push_back(vfi.V2());
if(vfi.V2() == pos.V(1) ) LkEdge.push_back(vfi.V1());
}
// if the collapsing edge was a boundary edge, we must add the dummy vertex.