From e5d3f05580612de85651fcb44f4f53871ad2c0fd Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 16 Apr 2007 09:08:15 +0000 Subject: [PATCH] commented out non compiling intersectionSpherePlane --- vcg/space/intersection3.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/vcg/space/intersection3.h b/vcg/space/intersection3.h index dfb1a19a..e69a0c79 100644 --- a/vcg/space/intersection3.h +++ b/vcg/space/intersection3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.30 2007/04/10 22:26:47 pietroni +IntersectionPlanePlane first parameter is a const + Revision 1.29 2007/04/04 23:19:40 pietroni - Changed name of intersection function between plane and triangle from Intersection to IntersectionPlaneTriangle. - Added Intersection_Plane_Sphere function. @@ -614,12 +617,12 @@ bool Intersection_Plane_Box(const vcg::Plane3 &pl, ///that is the intersectionk between the sphere and //the plane template -bool Intersection_Plane_Sphere(const vcg::Plane3 &pl, - const vcg::Sphere3 &sphere, - vcg::Point3 ¢er, - vcg::Point3 &radius) +bool Intersection_Plane_Sphere(const Plane3 &pl, + const Sphere3 &sphere, + Point3 ¢er, + ScalarType &radius) { - ///set the origin on the center of the sphere + /* ///set the origin on the center of the sphere vcg::Plane3 pl1; vcg::Point3 p_plane=pl.Direction()*pl.Offset(); vcg::Point3 p_plane=p_plane-sphere.Center(); @@ -646,6 +649,9 @@ bool Intersection_Plane_Sphere(const vcg::Plane3 &pl, center+=sphere.Center(); radius=math::Sqrt((r*r)-(d*d)); } + */ + assert(0); + return true; }