In rayFaceIntersectionDist, in the following code:
else if (t <= TOL)
// Perform more checks to determine whether the face is in front or behind
double dist1 = f.norm.dot(v1) - f.distRoot;
double dist2 = f.norm.dot(v2) - f.distRoot;
double dist3 = f.norm.dot(v2) - f.distRoot;
if (dist1 < -TOL || dist2 < -TOL || dist3 < -TOL)
else if (dist1 > TOL || dist2 > TOL || dist3 > TOL)
t = TOL;
t = 0;
So, dist3 is equal to dist2!!
I think we should we have "double dist3 = f.norm.dot(v3) - f.distRoot;"
I have not use cases where it has a consequence.
Thanks! I've checked in the fix.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.