#include #include #include #include #include #include #include #include #include #include #include #if !defined(__BORLANDC__) && !defined(_MSC_VER) #ifdef CGAL_USE_LEDA #include typedef leda_integer RT; #else #ifdef CGAL_USE_GMP #include typedef CGAL::Gmpz RT; #else #include typedef double RT; #endif #endif typedef CGAL::Homogeneous Kernel_3; typedef CGAL::Convex_hull_d_traits_3 Kernel_d_3; typedef CGAL::Convex_hull_d Convex_hull_d; typedef CGAL::Point_3 Point_3; typedef CGAL::Polyhedron_3 Polyhedron; typedef CGAL::Creator_uniform_3 Creator; typedef CGAL::Random_points_in_cube_3 Point_source; int main(int argc, char* argv[]) { int dimension = 3; int n = 100; if (argc > 1 && std::string(argv[1])=="-h") { std::cout << "usage: ch5-demo [#points]\n"; exit(1); } if (argc > 1) n = atoi(argv[1]); int r = 2*n; CGAL::Geomview_stream gv(CGAL::Bbox_3(-r, -r, -r, r, r, r)); gv.clear(); Convex_hull_d T(dimension); Point_source g(n); for(int i=0; i> ch; return 0; } #else // on windows: int main(int argc, char* argv[]) { std::cerr << "This demo requires geomview, that is is not present on windows\n"; return 0; } #endif