diff --git a/Alpha_shapes_3/examples/Alpha_shapes_3/ex_fixed_weighted_alpha_shapes_3.cpp b/Alpha_shapes_3/examples/Alpha_shapes_3/ex_fixed_weighted_alpha_shapes_3.cpp index 4be39844355..2ab3f874f69 100644 --- a/Alpha_shapes_3/examples/Alpha_shapes_3/ex_fixed_weighted_alpha_shapes_3.cpp +++ b/Alpha_shapes_3/examples/Alpha_shapes_3/ex_fixed_weighted_alpha_shapes_3.cpp @@ -7,11 +7,13 @@ typedef CGAL::Exact_predicates_inexact_constructions_kernel K; -typedef CGAL::Regular_triangulation_vertex_base_3 Vbb; - +typedef CGAL::Regular_triangulation_vertex_base_3 Vbb; typedef CGAL::Fixed_alpha_shape_vertex_base_3 Vb; -typedef CGAL::Fixed_alpha_shape_cell_base_3 Fb; -typedef CGAL::Triangulation_data_structure_3 Tds; + +typedef CGAL::Regular_triangulation_cell_base_3 Rcb; +typedef CGAL::Fixed_alpha_shape_cell_base_3 Cb; + +typedef CGAL::Triangulation_data_structure_3 Tds; typedef CGAL::Regular_triangulation_3 Triangulation_3; typedef CGAL::Fixed_alpha_shape_3 Fixed_alpha_shape_3; diff --git a/Alpha_shapes_3/examples/Alpha_shapes_3/ex_weighted_alpha_shapes_3.cpp b/Alpha_shapes_3/examples/Alpha_shapes_3/ex_weighted_alpha_shapes_3.cpp index 93a0cb034c8..8f1f01c74ea 100644 --- a/Alpha_shapes_3/examples/Alpha_shapes_3/ex_weighted_alpha_shapes_3.cpp +++ b/Alpha_shapes_3/examples/Alpha_shapes_3/ex_weighted_alpha_shapes_3.cpp @@ -5,13 +5,15 @@ typedef CGAL::Exact_predicates_inexact_constructions_kernel K; -typedef CGAL::Regular_triangulation_vertex_base_3 Vbb; +typedef CGAL::Regular_triangulation_vertex_base_3 Rvb; +typedef CGAL::Alpha_shape_vertex_base_3 Vb; -typedef CGAL::Alpha_shape_vertex_base_3 Vb; -typedef CGAL::Alpha_shape_cell_base_3 Fb; -typedef CGAL::Triangulation_data_structure_3 Tds; -typedef CGAL::Regular_triangulation_3 Triangulation_3; -typedef CGAL::Alpha_shape_3 Alpha_shape_3; +typedef CGAL::Regular_triangulation_cell_base_3 Rcb; +typedef CGAL::Alpha_shape_cell_base_3 Cb; + +typedef CGAL::Triangulation_data_structure_3 Tds; +typedef CGAL::Regular_triangulation_3 Triangulation_3; +typedef CGAL::Alpha_shape_3 Alpha_shape_3; typedef Alpha_shape_3::Cell_handle Cell_handle; typedef Alpha_shape_3::Vertex_handle Vertex_handle; diff --git a/Alpha_shapes_3/include/CGAL/internal/Lazy_alpha_nt_3.h b/Alpha_shapes_3/include/CGAL/internal/Lazy_alpha_nt_3.h index 95ae5e97506..2b4cbf40bc6 100644 --- a/Alpha_shapes_3/include/CGAL/internal/Lazy_alpha_nt_3.h +++ b/Alpha_shapes_3/include/CGAL/internal/Lazy_alpha_nt_3.h @@ -55,7 +55,7 @@ struct Types_for_alpha_nt_3 typedef CGAL::Cartesian_converter To_approx; typedef CGAL::Cartesian_converter To_exact; //Traits types - + //Point types typedef typename Kernel_approx::Point_3 Approx_point; typedef typename Kernel_exact::Point_3 Exact_point; @@ -82,7 +82,7 @@ struct Types_for_alpha_nt_3< ::CGAL::Tag_true,Input_traits,Kernel_input,Kernel_a typedef typename Input_traits::Weighted_point_3 Input_point; //Constructions typedef typename Approx_traits::Compute_squared_radius_smallest_orthogonal_sphere_3 Approx_squared_radius; - typedef typename Exact_traits::Compute_squared_radius_smallest_orthogonal_sphere_3 Exact_squared_radius; + typedef typename Exact_traits::Compute_squared_radius_smallest_orthogonal_sphere_3 Exact_squared_radius; }; diff --git a/Alpha_shapes_3/test/Alpha_shapes_3/bench_walpha.cpp b/Alpha_shapes_3/test/Alpha_shapes_3/bench_walpha.cpp index fed67b8139d..716d69e2f87 100644 --- a/Alpha_shapes_3/test/Alpha_shapes_3/bench_walpha.cpp +++ b/Alpha_shapes_3/test/Alpha_shapes_3/bench_walpha.cpp @@ -13,38 +13,36 @@ #include #include -typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; -typedef Kernel EPIC_traits; +typedef CGAL::Exact_predicates_inexact_constructions_kernel EPICK; +typedef CGAL::Exact_predicates_exact_constructions_kernel EPECK; -typedef Kernel::Weighted_point_3 Weighted_point; -typedef CGAL::Regular_triangulation_vertex_base_3 Vbb; -typedef CGAL::Fixed_alpha_shape_vertex_base_3 WFixed_Vb; -typedef CGAL::Fixed_alpha_shape_cell_base_3 WFixed_Cb; -typedef CGAL::Triangulation_data_structure_3 WFixed_TDS; -typedef CGAL::Regular_triangulation_3 WFixed_DT; -typedef CGAL::Fixed_alpha_shape_3< WFixed_DT > WFixed_AS; +typedef CGAL::Regular_triangulation_vertex_base_3 Rvb; +typedef CGAL::Fixed_alpha_shape_vertex_base_3 WFixed_Vb; +typedef CGAL::Regular_triangulation_cell_base_3 Rcb; +typedef CGAL::Fixed_alpha_shape_cell_base_3 WFixed_Cb; +typedef CGAL::Triangulation_data_structure_3 WFixed_TDS; +typedef CGAL::Regular_triangulation_3 WFixed_DT; +typedef CGAL::Fixed_alpha_shape_3 WFixed_AS; +typedef CGAL::Alpha_shape_vertex_base_3 WVb; +typedef CGAL::Alpha_shape_cell_base_3 WCb; +typedef CGAL::Triangulation_data_structure_3 WTDS; +typedef CGAL::Regular_triangulation_3 WDT; +typedef CGAL::Alpha_shape_3< WDT > WAS; -typedef CGAL::Alpha_shape_vertex_base_3 WVb; -typedef CGAL::Alpha_shape_cell_base_3 WCb; -typedef CGAL::Triangulation_data_structure_3 WTDS; -typedef CGAL::Regular_triangulation_3 WDT; -typedef CGAL::Alpha_shape_3< WDT > WAS; +typedef CGAL::Alpha_shape_vertex_base_3 WVb_f; +typedef CGAL::Alpha_shape_cell_base_3 WCb_f; +typedef CGAL::Triangulation_data_structure_3 WTDS_f; +typedef CGAL::Regular_triangulation_3 WDT_f; +typedef CGAL::Alpha_shape_3< WDT_f,CGAL::Tag_true > WAS_f; -typedef CGAL::Alpha_shape_vertex_base_3 WVb_f; -typedef CGAL::Alpha_shape_cell_base_3 WCb_f; -typedef CGAL::Triangulation_data_structure_3 WTDS_f; -typedef CGAL::Regular_triangulation_3 WDT_f; -typedef CGAL::Alpha_shape_3< WDT_f,CGAL::Tag_true > WAS_f; - -typedef CGAL::Exact_predicates_exact_constructions_kernel EKernel; -typedef CGAL::Regular_triangulation_vertex_base_3 EVbb; -typedef EKernel EPEC_traits; -typedef CGAL::Alpha_shape_vertex_base_3 EVb; -typedef CGAL::Alpha_shape_cell_base_3 ECb; -typedef CGAL::Triangulation_data_structure_3 ETDS; -typedef CGAL::Regular_triangulation_3 EDT; -typedef CGAL::Alpha_shape_3< EDT > EAS; +typedef CGAL::Regular_triangulation_vertex_base_3 ERvb; +typedef CGAL::Alpha_shape_vertex_base_3 EVb; +typedef CGAL::Regular_triangulation_cell_base_3 ERcb; +typedef CGAL::Alpha_shape_cell_base_3 ECb; +typedef CGAL::Triangulation_data_structure_3 ETDS; +typedef CGAL::Regular_triangulation_3 EDT; +typedef CGAL::Alpha_shape_3< EDT > EAS; template void fill_wp_lists(const char* file_path,std::list& Ls,double rw=0){ @@ -64,7 +62,7 @@ void fill_wp_lists(const char* file_path,std::list& Ls,double rw=0){ void make_one_run(const char* filename){ std::cout << "== testing with " << filename << " ==\n"; //read weighted points - std::list lst; + std::list lst; fill_wp_lists(filename,lst,1.4); CGAL::Timer time; @@ -112,7 +110,7 @@ void make_one_run(const char* filename){ time.reset(); - std::list elst; + std::list elst; fill_wp_lists(filename,elst,1.4); //recreate the triangulation time.start(); diff --git a/Alpha_shapes_3/test/Alpha_shapes_3/test_weighted_alpha_shape_3.cpp b/Alpha_shapes_3/test/Alpha_shapes_3/test_weighted_alpha_shape_3.cpp index f60844d5386..c5b89e7da7b 100644 --- a/Alpha_shapes_3/test/Alpha_shapes_3/test_weighted_alpha_shape_3.cpp +++ b/Alpha_shapes_3/test/Alpha_shapes_3/test_weighted_alpha_shape_3.cpp @@ -29,20 +29,21 @@ typedef CGAL::Exact_predicates_inexact_constructions_kernel K; -typedef CGAL::Regular_triangulation_vertex_base_3 Vbb; -typedef K::Weighted_point_3 Weighted_point; +typedef CGAL::Regular_triangulation_vertex_base_3 Rvb; +typedef CGAL::Alpha_shape_vertex_base_3 Vb; -typedef CGAL::Alpha_shape_vertex_base_3 Vb; -typedef CGAL::Alpha_shape_cell_base_3 Fb; -typedef CGAL::Triangulation_data_structure_3 Tds; +typedef CGAL::Regular_triangulation_cell_base_3 Rcb; +typedef CGAL::Alpha_shape_cell_base_3 Cb; +typedef CGAL::Triangulation_data_structure_3 Tds; -typedef CGAL::Regular_triangulation_3 Triangulation_3; -typedef CGAL::Alpha_shape_3 Alpha_shape_3; +typedef CGAL::Regular_triangulation_3 Triangulation_3; +typedef CGAL::Alpha_shape_3 Alpha_shape_3; +typedef K::Weighted_point_3 Weighted_point; //using exact filtered traits -typedef CGAL::Alpha_shape_vertex_base_3 EF_Vb; -typedef CGAL::Alpha_shape_cell_base_3 EF_Fb; -typedef CGAL::Triangulation_data_structure_3 EF_Tds; +typedef CGAL::Alpha_shape_vertex_base_3 EF_Vb; +typedef CGAL::Alpha_shape_cell_base_3 EF_Cb; +typedef CGAL::Triangulation_data_structure_3 EF_Tds; typedef CGAL::Regular_triangulation_3 EF_Triangulation_3; typedef CGAL::Alpha_shape_3 EF_Alpha_shape_3;