corrected one bug during collapses.. have to check link conditions

This commit is contained in:
Nico Pietroni 2014-03-07 10:35:36 +00:00
parent a6966b7ba0
commit 9e2643a90d
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ static void ConvertVoronoiDiagramToMesh(MeshType &m,
if((Distance(fi->P0(i),fi->P1(i))<distThr) && !fi->IsF(i))
{
// printf("Collapsing face %i:%i e%i \n",tri::Index(outMesh,*fi),tri::Index(outMesh,fi->FFp(i)),i);
if(!fi->V(i)->IsB())
if ((!fi->V(i)->IsB())&&(face::FFLinkCondition(*fi, i)))
face::FFEdgeCollapse(outMesh, *fi,i);
break;
}