From 11b5da660a35a0cc014c32f01c9133471dea37a2 Mon Sep 17 00:00:00 2001 From: Sven Oesau Date: Thu, 10 Jul 2025 14:50:28 +0200 Subject: [PATCH] correcting assertion in ghost edge insertion --- .../include/CGAL/Kinetic_surface_reconstruction_3.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Kinetic_surface_reconstruction/include/CGAL/Kinetic_surface_reconstruction_3.h b/Kinetic_surface_reconstruction/include/CGAL/Kinetic_surface_reconstruction_3.h index 761470cfc83..1d3474832f4 100644 --- a/Kinetic_surface_reconstruction/include/CGAL/Kinetic_surface_reconstruction_3.h +++ b/Kinetic_surface_reconstruction/include/CGAL/Kinetic_surface_reconstruction_3.h @@ -946,7 +946,7 @@ private: KSP_3::internal::dump_polygons(polygon_regions, "faces_by_region-" + std::to_string(lambda) + ".ply"); std::vector > borders; - std::vector > borders_per_region; + std::vector > borders_per_region(region); collect_connected_border(borders, region_index, borders_per_region); for (std::size_t i = 0; i < region; i++) { @@ -1363,7 +1363,7 @@ private: for (std::size_t j = 0; j < polygons[i].size(); j++) { vertices.push_back(cdt.insert(pl.to_2d(m_lcc.point(m_lcc.template dart_of_attribute<0>(polygons[i][j]))))); CGAL_assertion_code(auto it =) va2vh.insert(std::make_pair(polygons[i][j], vertices.size() - 1)); - CGAL_assertion(it.second); + CGAL_assertion(it.second || it.first->first == polygons[i][j]); vertices.back()->info().i = i; vertices.back()->info().j = j; @@ -1573,8 +1573,6 @@ private: //borders contains Attribute<0> handles casted to std::size_t std::vector processed(m_lcc.upper_bound_on_dart_ids(), false); - borders_per_region.resize(region_index.size()); - for (std::size_t i = 0;i