From 404ee8285e2a4bb8b5819e7b2c77a64457458763 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Thu, 2 Nov 2017 08:27:10 +0100 Subject: [PATCH] Fix log2 --- .../include/CGAL/Shape_detection_3/Octree.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Octree.h b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Octree.h index 25fdd4e2441..34339daa91d 100644 --- a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Octree.h +++ b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Octree.h @@ -289,8 +289,9 @@ namespace CGAL { + (m_bBox.ymax() - m_bBox.ymin()) * (m_bBox.ymax() - m_bBox.ymin()) + (m_bBox.zmax() - m_bBox.zmin()) * (m_bBox.zmax() - m_bBox.zmin())); - m_set_max_level = std::size_t (std::log2 (bbox_diagonal - / cluster_epsilon_for_max_level_recomputation)); + m_set_max_level = std::size_t (std::log (bbox_diagonal + / cluster_epsilon_for_max_level_recomputation) + / std::log (2.0)); } std::stack stack;