diff --git a/Mesh_2/test/Mesh_2/test_lloyd.cpp b/Mesh_2/test/Mesh_2/test_lloyd.cpp index 8872ab91072..7a60130cc2d 100644 --- a/Mesh_2/test/Mesh_2/test_lloyd.cpp +++ b/Mesh_2/test/Mesh_2/test_lloyd.cpp @@ -6,7 +6,9 @@ #include #include #include + #include +#include #include #include "test_utilities.h" @@ -15,28 +17,24 @@ #include #include -typedef CGAL::Exact_predicates_inexact_constructions_kernel Epick; +typedef CGAL::Exact_predicates_inexact_constructions_kernel K; +typedef CGAL::Delaunay_mesh_vertex_base_2 Vb; +typedef CGAL::Delaunay_mesh_face_base_2 Fb; + +typedef CGAL::Triangulation_data_structure_2 TDS; +typedef CGAL::Exact_predicates_tag Itag; +typedef CGAL::Constrained_Delaunay_triangulation_2 CDT; +typedef CGAL::Delaunay_mesh_size_criteria_2 Criteria; + +typedef CDT::size_type size_type; +typedef CDT::Point Point; using namespace CGAL::parameters; -template struct Lloyd_tester { - typedef CGAL::Delaunay_mesh_vertex_base_2 Vb; - typedef CGAL::Delaunay_mesh_face_base_2 Fb; - - typedef CGAL::Triangulation_data_structure_2 TDS; - typedef CGAL::Exact_predicates_tag Itag; - typedef CGAL::Constrained_Delaunay_triangulation_2 CDT; - typedef CGAL::Delaunay_mesh_size_criteria_2 Criteria; - - typedef typename CDT::size_type size_type; - typedef typename CDT::Point Point; - - void operator()() const + void operator()(CDT& cdt) const { - CDT cdt; - std::vector seeds; seeds.reserve(32); @@ -79,6 +77,11 @@ struct Lloyd_tester int main() { std::cerr << "TESTING lloyd_optimize_mesh_2 with Epick...\n\n"; - Lloyd_tester tester; - tester(); + CDT cdt; + Lloyd_tester tester; + tester(cdt); + + //compilation test + CGAL::Lipschitz_sizing_field_2 lip_size(cdt); + }