Now BitQuadMarkVertexRotations rotates all profitable ones (not just the 1st)
This commit is contained in:
parent
7f83000b93
commit
8e081cde43
vcg/complex/trimesh
|
@ -270,11 +270,12 @@ int BitQuadMarkVertexRotations(Mesh &m)
|
||||||
if (TestBitQuadVertexRotation(*fi,k)) {
|
if (TestBitQuadVertexRotation(*fi,k)) {
|
||||||
res++;
|
res++;
|
||||||
fi->V(k)->SetV();
|
fi->V(k)->SetV();
|
||||||
if (!perform)
|
if (!perform) {
|
||||||
MarkVertex(&*fi, k, m); //fi->Q()=0;
|
res++; MarkVertex(&*fi, k, m); //fi->Q()=0;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
RotateBitQuadVertex(*fi, k); //fi->Q()=0;
|
if (RotateBitQuadVertex(*fi, k)) res++; //fi->Q()=0;
|
||||||
return 1;
|
//if (res>1) return res; // uncomment for only one rotation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue