From 5c5c48ba1676ad8bb0d1de65baa31e926fbcd1eb Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 14 Nov 2025 10:46:12 +0100 Subject: [PATCH] improve readability --- Mesh_3/include/CGAL/Sizing_field_with_aabb_tree.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Mesh_3/include/CGAL/Sizing_field_with_aabb_tree.h b/Mesh_3/include/CGAL/Sizing_field_with_aabb_tree.h index db291ec470f..f21ed1ea621 100644 --- a/Mesh_3/include/CGAL/Sizing_field_with_aabb_tree.h +++ b/Mesh_3/include/CGAL/Sizing_field_with_aabb_tree.h @@ -228,13 +228,13 @@ public: //fill incidences of corners with curves d_ptr->corners_incident_curves.resize(d_ptr->corners.size()); - for(const typename Corners_indices::value_type& pair : d_ptr->corners_indices) + for(const auto& [corner_pt, corner_index] : d_ptr->corners_indices) { - d_ptr->dt.insert(pair.first); + d_ptr->dt.insert(corner_pt); // Fill `corners_incident_curves[corner_id]` - Curves_ids& incident_curves = d_ptr->corners_incident_curves[pair.second]; - d_ptr->domain.get_corner_incident_curves(pair.second, + Curves_ids& incident_curves = d_ptr->corners_incident_curves[corner_index]; + d_ptr->domain.get_corner_incident_curves(corner_index, std::inserter(incident_curves, incident_curves.end())); // For each incident loop, insert a point on the loop, as far as @@ -244,9 +244,9 @@ public: if(domain.is_loop(curve_index)) { FT curve_length = d_ptr->domain.curve_length(curve_index); auto loc = - d_ptr->domain.locate_corner(curve_index, pair.first); + d_ptr->domain.locate_corner(curve_index, corner_pt); auto [other_point, _] = - d_ptr->domain.construct_point_on_curve(pair.first, + d_ptr->domain.construct_point_on_curve(corner_pt, curve_index, curve_length / 2, loc);