From 5bb5c1a1eb8ff7efb17eea45065e591f829850f3 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 18 Jan 2012 16:41:34 +0000 Subject: [PATCH] Correct a function name to match attribute order IntersectionPlaneLine(line,plane) -> IntersectionPlaneLine(plane,line) --- vcg/space/intersection3.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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){