diff --git a/Arrangement_on_surface_2/demo/earth/Aos.cpp b/Arrangement_on_surface_2/demo/earth/Aos.cpp index f2bdc785187..2fe52038df8 100644 --- a/Arrangement_on_surface_2/demo/earth/Aos.cpp +++ b/Arrangement_on_surface_2/demo/earth/Aos.cpp @@ -42,6 +42,10 @@ using json = nlohmann::ordered_json; #include #include +// Include for point location queries +#include +#include + namespace { //#define USE_EPIC @@ -1538,13 +1542,14 @@ namespace } namespace { - - Aos::Arr_handle get_handle(void* arr) + + template + Aos::Arr_handle get_handle(T* arr) { return Aos::Arr_handle(arr, [](void* ptr) { std::cout << "*** DELETING THE ARRANGEMENT WITH SHARED_PTR DELETER!!\n"; - delete reinterpret_cast(ptr); + delete reinterpret_cast(ptr); }); } } @@ -1629,7 +1634,7 @@ std::vector Aos::get_triangles(Arr_handle arrh) // loop on all approximated faces for (auto& face_points : all_faces) { - std::cout << "num face points = " << face_points.size() << std::endl; + //std::cout << "num face points = " << face_points.size() << std::endl; // no need to triangulate if the number of points is 3 if (face_points.size() == 3) { @@ -1764,7 +1769,7 @@ Aos::Country_triangles_map Aos::get_triangles_by_country(Arr_handle arrh) // loop on all approximated faces for (auto& face_points : all_faces_of_current_country) { - std::cout << "num face points = " << face_points.size() << std::endl; + //std::cout << "num face points = " << face_points.size() << std::endl; // no need to triangulate if the number of points is 3 if (face_points.size() == 3) { @@ -1913,8 +1918,6 @@ Aos::Country_color_map Aos::get_color_mapping(Arr_handle arrh) return result; } -#include -#include std::string Aos::locate_country(Arr_handle arrh, const QVector3D& point) {