Now BitQuadMarkVertexRotations rotates all profitable ones (not just the 1st)

This commit is contained in:
mtarini 2009-08-21 18:46:05 +00:00
parent 7f83000b93
commit 8e081cde43
1 changed files with 5 additions and 4 deletions

View File

@ -270,11 +270,12 @@ int BitQuadMarkVertexRotations(Mesh &m)
if (TestBitQuadVertexRotation(*fi,k)) {
res++;
fi->V(k)->SetV();
if (!perform)
MarkVertex(&*fi, k, m); //fi->Q()=0;
if (!perform) {
res++; MarkVertex(&*fi, k, m); //fi->Q()=0;
}
else {
RotateBitQuadVertex(*fi, k); //fi->Q()=0;
return 1;
if (RotateBitQuadVertex(*fi, k)) res++; //fi->Q()=0;
//if (res>1) return res; // uncomment for only one rotation
}
}
}