From 87db18689d671f4ec03d5792fb468eb6555b5309 Mon Sep 17 00:00:00 2001 From: ponchio Date: Tue, 22 Feb 2005 14:18:15 +0000 Subject: [PATCH] assert addded. --- vcg/space/sphere3.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vcg/space/sphere3.h b/vcg/space/sphere3.h index d42c9dac..a46f66c2 100644 --- a/vcg/space/sphere3.h +++ b/vcg/space/sphere3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.7 2005/02/21 17:03:03 ponchio +Added Tight creation. + Revision 1.6 2004/12/01 16:06:59 ponchio Distance @@ -48,6 +51,7 @@ First version. #ifndef VCG_SPHERE_H #define VCG_SPHERE_H +#include #include namespace vcg { @@ -203,6 +207,11 @@ template void Sphere3::Intersect(const Sphere3 &s) { break; } Radius() *= 1.01; + + //Test we did it correctly. + for(int i = 0; i < n; i++) + assert(IsIn(points[i])); + return count; }