#include #include #include #include #include #include #include #include typedef CGAL::Exact_predicates_inexact_constructions_kernel K; typedef CGAL::Delaunay_triangulation_2 Delaunay; typedef Delaunay::Finite_vertices_iterator FVI; typedef Delaunay::Vertex_handle Vertex_handle; typedef K::Point_2 Point; typedef CGAL::Creator_uniform_2 Creator; int main(int argc, char **argv) { int n=1000000; int rep=100; if (argc>=2) n=atoi(argv[1]); if (argc>=3) rep=atoi(argv[2]); std::vector points; points.reserve(n); CGAL::Random_points_in_disc_2 g(1); CGAL::copy_n( g, n, std::back_inserter(points)); Delaunay original; original.insert(points.begin(),points.end()); double res=0; for (int r=0;r vertices; for(FVI fvi = delaunay.finite_vertices_begin(); fvi != delaunay.finite_vertices_end();++fvi){ vertices.push_back(fvi); } CGAL::Timer t; t.start(); for (int k=0; k