From 267b1dc3d105f90bf44946b5e19e114706f976da Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 15 Oct 2020 15:43:39 +0200 Subject: [PATCH] Bug-fix In degenerated cases, when a subconstraint is subdivided by an intersection point between two other subconstraints, then it is possible that a subconstraint is already split when one calls `add_Steiner`. Let's remote the assertion. --- .../internal/Polyline_constraint_hierarchy_2.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Triangulation_2/include/CGAL/Triangulation_2/internal/Polyline_constraint_hierarchy_2.h b/Triangulation_2/include/CGAL/Triangulation_2/internal/Polyline_constraint_hierarchy_2.h index 3713469fc55..171e761626a 100644 --- a/Triangulation_2/include/CGAL/Triangulation_2/internal/Polyline_constraint_hierarchy_2.h +++ b/Triangulation_2/include/CGAL/Triangulation_2/internal/Polyline_constraint_hierarchy_2.h @@ -1047,7 +1047,9 @@ add_Steiner(T va, T vb, T vc){ << ")\n"; #endif // CGAL_CDT_2_DEBUG_INTERSECTIONS Context_list* hcl=nullptr; - if(!get_contexts(va,vb,hcl)) CGAL_triangulation_assertion(false); + if(!get_contexts(va,vb,hcl)) { + return; + } Context_list* hcl2 = new Context_list;