From 824d9890c519f9bbc6d831f65a5e098e523d79b6 Mon Sep 17 00:00:00 2001 From: denizdiktas Date: Mon, 10 Jul 2023 20:38:27 +0300 Subject: [PATCH] minor refactor --- Arrangement_on_surface_2/demo/earth/Aos.cpp | 11 +++++------ Arrangement_on_surface_2/demo/earth/Main_widget.cpp | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Arrangement_on_surface_2/demo/earth/Aos.cpp b/Arrangement_on_surface_2/demo/earth/Aos.cpp index 08d879858bc..1fe45cf4008 100644 --- a/Arrangement_on_surface_2/demo/earth/Aos.cpp +++ b/Arrangement_on_surface_2/demo/earth/Aos.cpp @@ -392,12 +392,12 @@ std::vector Aos::ext_check(const Kml::Placemarks& placemarks) std::vector Aos::ext_check_id_based(Kml::Placemarks& placemarks) { // Construct the arrangement from 12 geodesic arcs. - Geom_traits traits, traits2; - Ext_aos arr(&traits), arr2(&traits2); + Geom_traits traits; + Ext_aos arr(&traits); // - //auto nodes = Kml::generate_ids(placemarks); - auto nodes = Kml::generate_ids_approx(placemarks, 0.001); + auto nodes = Kml::generate_ids(placemarks); + //auto nodes = Kml::generate_ids_approx(placemarks, 0.001); //Segment s() auto ctr_p = traits.construct_point_2_object(); @@ -407,8 +407,7 @@ std::vector Aos::ext_check_id_based(Kml::Placemarks& placemarks) int num_counted_polygons = 0; // std::vector points; - using Vertex_handle = decltype(CGAL::insert_point(arr2, ctr_p(1, 0, 0))); - std::vector vertices; + std::vector vertices; for (const auto& node : nodes) { auto n = node.get_coords_3d(); diff --git a/Arrangement_on_surface_2/demo/earth/Main_widget.cpp b/Arrangement_on_surface_2/demo/earth/Main_widget.cpp index 7e891757e3d..acf297d4267 100644 --- a/Arrangement_on_surface_2/demo/earth/Main_widget.cpp +++ b/Arrangement_on_surface_2/demo/earth/Main_widget.cpp @@ -228,8 +228,8 @@ void Main_widget::initializeGL() else { // check the arrangement constructed from the GIS data-set - //auto created_vertices = Aos::ext_check(m_countries); - auto created_vertices = Aos::ext_check_id_based(m_countries); + auto created_vertices = Aos::ext_check(m_countries); + //auto created_vertices = Aos::ext_check_id_based(m_countries); m_vertices = std::make_unique(created_vertices); }