#include <CGAL/Min_annulus_d.h>
#include <CGAL/Min_sphere_annulus_d_traits_2.h>
#include <CGAL/Homogeneous.h>
#include <CGAL/Exact_integer.h>
typedef CGAL::Exact_integer ET;
#include <iostream>
#include <cassert>
typedef K::Point_2 Point;
int main()
{
Point P[8] = { Point(-1,-1), Point(-1,1), Point(1,-1), Point(1,1),
Point(-2,-2), Point(-2,2), Point(2,-2), Point(2,2)};
Min_annulus ma(P, P+8);
assert (ma.is_valid());
Min_annulus::Coordinate_iterator coord_it;
std::cout << "center:";
for (coord_it = ma.center_coordinates_begin();
coord_it != ma.center_coordinates_end();
++coord_it)
std::cout << std::endl;
std::cout << "Inner squared radius: " <<
std::cout << "Outer squared radius: " <<
return 0;
}
An object of the class Min_annulus_d is the unique annulus (region between two concentric spheres wit...
Definition: Min_annulus_d.h:55
The class Min_sphere_annulus_d_traits_2 is a traits class for the -dimensional optimisation algorithm...
Definition: Min_sphere_annulus_d_traits_2.h:23
double to_double(const NT &x)