// ============================================================================ // // Copyright (c) 1997-2001 The CGAL Consortium // // This software and related documentation is part of an INTERNAL release // of the Computational Geometry Algorithms Library (CGAL). It is not // intended for general use. // // ---------------------------------------------------------------------------- // // release : $CGAL_Revision: CGAL-I $ // release_date : $CGAL_Date$ // // file : test/Min_annulus_d/test_Min_annulus_d_d.cpp // package : $CGAL_Package: Min_annulus_d $ // chapter : Geometric Optimisation // // revision : $Id$ // revision_date : $Date$ // // author(s) : Sven Schönherr // coordinator : ETH Zürich (Bernd Gärtner ) // // implementation: test program for Min_annulus (dD traits class) // ============================================================================ #include #include #include #include #ifdef CGAL_USE_GMP #include #include typedef CGAL::Gmpzf RT; typedef CGAL::Gmpq FT; #else #include #include typedef CGAL::MP_Float RT; typedef CGAL::Quotient FT; #endif #include #include #include #include #include // exact kernels typedef CGAL::Cartesian_d CK1; typedef CGAL::Min_sphere_annulus_d_traits_d CTraits1; typedef CGAL::Homogeneous_d HK1; typedef CGAL::Min_sphere_annulus_d_traits_d HTraits1; // inexact kernels typedef CGAL::Cartesian_d CK2; typedef CGAL::Min_sphere_annulus_d_traits_d CTraits2; typedef CGAL::Homogeneous_d HK2; typedef CGAL::Min_sphere_annulus_d_traits_d HTraits2; #include #include #include "test_Min_annulus_d.h" template void process () { // generate point set std::vector points; points.reserve( 100); { int d = 10; std::vector coords( d+1); int i, j; double hom = 2.0; for ( i = 0; i < 100; ++i) { for (j=0; j #ifdef CGAL_USE_GMP process(); #endif process(); process(); process(); } // ===== EOF ==================================================================