From 24a063a292b080e4cee701bde31c71b90608860f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 27 Jan 2023 15:22:21 +0100 Subject: [PATCH] fix update() for spheres --- .../Region_growing/Point_set/Least_squares_sphere_fit_region.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Point_set/Least_squares_sphere_fit_region.h b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Point_set/Least_squares_sphere_fit_region.h index e9432597358..09deb0849c4 100644 --- a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Point_set/Least_squares_sphere_fit_region.h +++ b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Point_set/Least_squares_sphere_fit_region.h @@ -335,8 +335,9 @@ namespace Point_set { if (radius >= FT(0)) { m_radius = radius; m_center = center; + return true; } - return true; + return false; } /// @}