diff --git a/vcg/space/intersection3.h b/vcg/space/intersection3.h index 46059a06..65e164d9 100644 --- a/vcg/space/intersection3.h +++ b/vcg/space/intersection3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.25 2006/06/06 14:35:31 zifnab1974 +Changes for compilation on linux AMD64. Some remarks: Linux filenames are case-sensitive. _fileno and _filelength do not exist on linux + Revision 1.24 2006/06/01 08:38:02 pietroni Added functions: @@ -629,6 +632,11 @@ bool Intersection_Triangle_Box( vcg::Box3 &bbox, return false; } +template +bool Intersection_Sphere_Sphere( const SphereType & s0,const SphereType & s1){ + return (s0.Center()-s1.Center()).SquaredNorm() < (s0.Radius()+s1.Radius())*(s0.Radius()+s1.Radius()); +} + template bool Intersection (const Plane3 & plane0, const Plane3 & plane1, Line3 & line) @@ -693,6 +701,8 @@ public: }; + + /*@}*/ } // end namespace