diff --git a/simgear/math/SGIntersect.hxx b/simgear/math/SGIntersect.hxx index aea3bb3e..533bd2dc 100644 --- a/simgear/math/SGIntersect.hxx +++ b/simgear/math/SGIntersect.hxx @@ -572,6 +572,7 @@ closestPoint(const SGTriangle& tri, const SGVec3& p) T u = b*e - c*d; T v = b*d - a*e; +/* // Regions // \2| // \| @@ -579,6 +580,7 @@ closestPoint(const SGTriangle& tri, const SGVec3& p) // 3 |0\ 1 //---------- // 4 | 5 \ 6 +*/ if (u + v <= det) { if (u < 0) { @@ -766,6 +768,7 @@ intersects(const SGTriangle& tri, const SGSphere& sphere) T u = b*e - c*d; T v = b*d - a*e; +/* // Regions // \2| // \| @@ -773,6 +776,7 @@ intersects(const SGTriangle& tri, const SGSphere& sphere) // 3 |0\ 1 //---------- // 4 | 5 \ 6 +*/ if (u + v <= det) { if (u < 0) {