assert addded.
This commit is contained in:
parent
a212f6320d
commit
87db18689d
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.6 2004/12/01 16:06:59 ponchio
|
||||||
Distance
|
Distance
|
||||||
|
|
||||||
|
@ -48,6 +51,7 @@ First version.
|
||||||
#ifndef VCG_SPHERE_H
|
#ifndef VCG_SPHERE_H
|
||||||
#define VCG_SPHERE_H
|
#define VCG_SPHERE_H
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <vcg/space/point3.h>
|
#include <vcg/space/point3.h>
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
|
@ -203,6 +207,11 @@ template <class T> void Sphere3<T>::Intersect(const Sphere3<T> &s) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Radius() *= 1.01;
|
Radius() *= 1.01;
|
||||||
|
|
||||||
|
//Test we did it correctly.
|
||||||
|
for(int i = 0; i < n; i++)
|
||||||
|
assert(IsIn(points[i]));
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue