commented out non compiling intersectionSpherePlane

This commit is contained in:
Paolo Cignoni 2007-04-16 09:08:15 +00:00
parent 254ae3f364
commit e5d3f05580
1 changed files with 11 additions and 5 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $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 Revision 1.29 2007/04/04 23:19:40 pietroni
- Changed name of intersection function between plane and triangle from Intersection to IntersectionPlaneTriangle. - Changed name of intersection function between plane and triangle from Intersection to IntersectionPlaneTriangle.
- Added Intersection_Plane_Sphere function. - Added Intersection_Plane_Sphere function.
@ -614,12 +617,12 @@ bool Intersection_Plane_Box(const vcg::Plane3<ScalarType> &pl,
///that is the intersectionk between the sphere and ///that is the intersectionk between the sphere and
//the plane //the plane
template <class ScalarType> template <class ScalarType>
bool Intersection_Plane_Sphere(const vcg::Plane3<ScalarType> &pl, bool Intersection_Plane_Sphere(const Plane3<ScalarType> &pl,
const vcg::Sphere3<ScalarType> &sphere, const Sphere3<ScalarType> &sphere,
vcg::Point3<ScalarType> &center, Point3<ScalarType> &center,
vcg::Point3<ScalarType> &radius) ScalarType &radius)
{ {
///set the origin on the center of the sphere /* ///set the origin on the center of the sphere
vcg::Plane3<ScalarType> pl1; vcg::Plane3<ScalarType> pl1;
vcg::Point3<ScalarType> p_plane=pl.Direction()*pl.Offset(); vcg::Point3<ScalarType> p_plane=pl.Direction()*pl.Offset();
vcg::Point3<ScalarType> p_plane=p_plane-sphere.Center(); vcg::Point3<ScalarType> p_plane=p_plane-sphere.Center();
@ -646,6 +649,9 @@ bool Intersection_Plane_Sphere(const vcg::Plane3<ScalarType> &pl,
center+=sphere.Center(); center+=sphere.Center();
radius=math::Sqrt((r*r)-(d*d)); radius=math::Sqrt((r*r)-(d*d));
} }
*/
assert(0);
return true;
} }