diff --git a/vcg/space/intersection3.h b/vcg/space/intersection3.h index 5b3e96cc..3a9e85cc 100644 --- a/vcg/space/intersection3.h +++ b/vcg/space/intersection3.h @@ -217,10 +217,9 @@ namespace vcg { return penetration_detected; }; //end of IntersectionSphereTriangle - /// intersection between line and plane template - inline bool IntersectionLinePlane( const Plane3 & pl, const Line3 & li, Point3 & po){ + inline bool IntersectionPlaneLine( const Plane3 & pl, const Line3 & li, Point3 & po){ const T epsilon = T(1e-8); T k = pl.Direction().dot(li.Direction()); // Compute 'k' factor @@ -230,7 +229,13 @@ namespace vcg { po = li.Origin() + li.Direction()*r; return true; } - + /// intersection between line and plane + template + inline bool IntersectionLinePlane(const Line3 & li, const Plane3 & pl, Point3 & po){ + + return IntersectionPlaneLine(pl,li,po); + } + /// intersection between segment and plane template inline bool IntersectionPlaneSegment( const Plane3 & pl, const Segment3 & s, Point3 & p0){