Bug fixing in the PickFace function

Bug fixing in the projection of the vertices near to the plane of the
projection point
This commit is contained in:
Gianpaolo Palma 2017-03-27 11:15:43 +02:00
parent a34532abac
commit be9a3aed74
1 changed files with 1 additions and 0 deletions

View File

@ -200,6 +200,7 @@ public:
const CoordType &p1 = pVec[tri::Index(m, m.face[i].V(1))];
const CoordType &p2 = pVec[tri::Index(m, m.face[i].V(2))];
if (!(abs(p0[2]) > 1 || abs(p1[2]) > 1 || abs(p2[2]) > 1) && IntersectionTriangleBox(reg, p0, p1, p2))
result.push_back(&m.face[i]);
}
}