diff --git a/Nef_S2/demo/Nef_S2/include/CGAL/Nef_S2/create_random_Nef_S2.C b/Nef_S2/demo/Nef_S2/include/CGAL/Nef_S2/create_random_Nef_S2.C deleted file mode 100644 index 5baf9be7931..00000000000 --- a/Nef_S2/demo/Nef_S2/include/CGAL/Nef_S2/create_random_Nef_S2.C +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2004 Max-Planck-Institute Saarbruecken (Germany). -// All rights reserved. -// -// This file is part of CGAL (www.cgal.org); you may redistribute it under -// the terms of the Q Public License version 1.0. -// See the file LICENSE.QPL distributed with CGAL. -// -// Licensees holding a valid commercial license may use this file in -// accordance with the commercial license agreement provided with the software. -// -// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -// -// $URL$ -// $Id$ -// -// -// Author(s) : Peter Hachenberger - -#ifndef NEF_POLYHEDRON_S2_CREATE_RANDOM_H -#define NEF_POLYHEDRON_S2_CREATE_RANDOM_H - -#include -#include -#include - -template -Nef_polyedron_S2 create_random_Nef_S2(int n, int seed) { - - typedef Nef_polyhedron_S2 Polyhedron; - typedef typename Polyhedron::Sphere_circle Sphere_circle; - typedef typename Polyhedron::Point_3 Point_3; - typedef typename Polyhedron::NT NT; - - typedef CGAL::Creator_uniform_3 Creator; - typedef CGAL::Random_points_in_cube_3 Point_source; - - srand(seed); - - std::list L; - Point_source S(5); - Point_3 ph; - Point_3 o(0,0,0); - while ( n-- > 0 ) { - do { ph = *S++; } - while ( ph == o ); - Plane_3 h(o,(ph-CGAL::ORIGIN).direction()); - L.push_back( Sphere_circle(h) ); - } - - return Polyhedron(L.begin(), L.end(), 0.5); - -} - -#endif \\ NEF_POLYHEDRON_S2_CREATE_RANDOM_H diff --git a/Nef_S2/examples/Nef_S2/include/CGAL/Nef_S2/create_random_Nef_S2.C b/Nef_S2/examples/Nef_S2/include/CGAL/Nef_S2/create_random_Nef_S2.C deleted file mode 100644 index 6243b553776..00000000000 --- a/Nef_S2/examples/Nef_S2/include/CGAL/Nef_S2/create_random_Nef_S2.C +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef NEF_POLYHEDRON_S2_CREATE_RANDOM_H -#define NEF_POLYHEDRON_S2_CREATE_RANDOM_H - -#include -#include -#include - -template -Nef_polyedron_S2 create_random_Nef_S2(int n, int seed) { - - typedef Nef_polyhedron_S2 Polyhedron; - typedef typename Polyhedron::Sphere_circle Sphere_circle; - typedef typename Polyhedron::Point_3 Point_3; - typedef typename Polyhedron::NT NT; - - typedef CGAL::Creator_uniform_3 Creator; - typedef CGAL::Random_points_in_cube_3 Point_source; - - srand(seed); - - std::list L; - Point_source S(5); - Point_3 ph; - Point_3 o(0,0,0); - while ( n-- > 0 ) { - do { ph = *S++; } - while ( ph == o ); - Plane_3 h(o,(ph-CGAL::ORIGIN).direction()); - L.push_back( Sphere_circle(h) ); - } - - return Polyhedron(L.begin(), L.end(), 0.5); - -} - -#endif \\ NEF_POLYHEDRON_S2_CREATE_RANDOM_H