diff --git a/vcg/space/smallest_enclosing.h b/vcg/space/smallest_enclosing.h index 1772d708..3f327575 100644 --- a/vcg/space/smallest_enclosing.h +++ b/vcg/space/smallest_enclosing.h @@ -25,6 +25,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.1 2006/07/06 12:37:18 ganovelli +draft version. For the triangle is not tehe smallest enclosing sphere and for the set of spheres works only for two spheres + ****************************************************************************/ @@ -65,7 +68,7 @@ static SmallestEnclosing::SphereOfTriangle(const TriangleType & t){ template Sphere3 static SmallestEnclosing::SphereOfTetra(const TetraType & t){ - return Sphere3( Barycenter(t),( Barycenter(t)-t.cP(0)).Norm() ); + return Sphere3( t.Barycenter(),( t.Barycenter() - t.cP(0) ).Norm() ); } template