Bounding_volumes

This commit is contained in:
Andreas Fabri 2022-01-26 16:46:41 +00:00
parent 0ce35e88ff
commit 31b6b06aa4
3 changed files with 6 additions and 3 deletions

View File

@ -5,6 +5,7 @@
#include <CGAL/Exact_rational.h> #include <CGAL/Exact_rational.h>
#include <CGAL/Min_sphere_of_spheres_d.h> #include <CGAL/Min_sphere_of_spheres_d.h>
#include <vector> #include <vector>
#include <cassert>
const int N = 1000; // number of spheres const int N = 1000; // number of spheres
const int LOW = 0, HIGH = 10000; // range of coordinates and radii const int LOW = 0, HIGH = 10000; // range of coordinates and radii
@ -29,5 +30,5 @@ int main () {
} }
Min_sphere ms(S.begin(),S.end()); // check in the spheres Min_sphere ms(S.begin(),S.end()); // check in the spheres
CGAL_assertion(ms.is_valid()); assert(ms.is_valid());
} }

View File

@ -5,6 +5,7 @@
#include <CGAL/Exact_rational.h> #include <CGAL/Exact_rational.h>
#include <CGAL/Min_sphere_of_spheres_d.h> #include <CGAL/Min_sphere_of_spheres_d.h>
#include <vector> #include <vector>
#include <cassert>
const int N = 1000; // number of spheres const int N = 1000; // number of spheres
const int LOW = 0, HIGH = 10000; // range of coordinates and radii const int LOW = 0, HIGH = 10000; // range of coordinates and radii
@ -30,5 +31,5 @@ int main () {
} }
Min_sphere ms(S.begin(),S.end()); // check in the spheres Min_sphere ms(S.begin(),S.end()); // check in the spheres
CGAL_assertion(ms.is_valid()); assert(ms.is_valid());
} }

View File

@ -5,6 +5,7 @@
#include <CGAL/Exact_rational.h> #include <CGAL/Exact_rational.h>
#include <CGAL/Min_sphere_of_spheres_d.h> #include <CGAL/Min_sphere_of_spheres_d.h>
#include <vector> #include <vector>
#include <cassert>
const int N = 1000; // number of spheres const int N = 1000; // number of spheres
const int D = 3; // dimension of points const int D = 3; // dimension of points
@ -31,5 +32,5 @@ int main () {
} }
Min_sphere ms(S.begin(),S.end()); // check in the spheres Min_sphere ms(S.begin(),S.end()); // check in the spheres
CGAL_assertion(ms.is_valid()); assert(ms.is_valid());
} }