From 138b06ca1188c9aaa734801cdda7f7a6cac54602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 3 Mar 2025 10:15:51 +0100 Subject: [PATCH 1/2] add missing include --- Algebraic_foundations/include/CGAL/number_utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Algebraic_foundations/include/CGAL/number_utils.h b/Algebraic_foundations/include/CGAL/number_utils.h index c17823d72b9d..bfe2bc346411 100644 --- a/Algebraic_foundations/include/CGAL/number_utils.h +++ b/Algebraic_foundations/include/CGAL/number_utils.h @@ -21,6 +21,7 @@ #include #include #include +#include namespace CGAL { CGAL_NTS_BEGIN_NAMESPACE From 1b189f40fd1d36d5daf3b92ff7568c4cbfce7383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 3 Mar 2025 16:27:24 +0100 Subject: [PATCH 2/2] check should be on the dimension not the number of points --- Alpha_shapes_2/include/CGAL/Alpha_shape_2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alpha_shapes_2/include/CGAL/Alpha_shape_2.h b/Alpha_shapes_2/include/CGAL/Alpha_shape_2.h index 3c4cb4b7d301..812f609d3aca 100644 --- a/Alpha_shapes_2/include/CGAL/Alpha_shape_2.h +++ b/Alpha_shapes_2/include/CGAL/Alpha_shape_2.h @@ -1442,7 +1442,7 @@ Alpha_shape_2::find_alpha_solid() const // takes O(#alpha_shape) time Type_of_alpha alpha_solid = 0; - if (number_of_vertices()<3) return alpha_solid; + if (dimension()!=2) return alpha_solid; Finite_vertices_iterator vertex_it; // only finite vertices