From c55d75ede896f3dce1849ed41ee918681d22d06f Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 15 Dec 2017 10:24:11 +0100 Subject: [PATCH] sq_circumradius cannot be computed on an infinite facet there was no need to check if a face is in domain, but we still need to check whether it is infinite --- Mesh_2/include/CGAL/Mesh_2/Mesh_global_optimizer_2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mesh_2/include/CGAL/Mesh_2/Mesh_global_optimizer_2.h b/Mesh_2/include/CGAL/Mesh_2/Mesh_global_optimizer_2.h index 43d2f09438a..f7a6fd309e4 100644 --- a/Mesh_2/include/CGAL/Mesh_2/Mesh_global_optimizer_2.h +++ b/Mesh_2/include/CGAL/Mesh_2/Mesh_global_optimizer_2.h @@ -307,7 +307,8 @@ private: // Find the minimum value do { - min_sqr = (std::min)(min_sqr, sq_circumradius(face)); + if (!cdt_.is_infinite(face)) + min_sqr = (std::min)(min_sqr, sq_circumradius(face)); face++; } while(face != end);