From fb86a45d478a9d59fa0d60e36c4cc8d9d16e5f3f Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Thu, 17 Sep 2020 14:19:04 +0200 Subject: [PATCH] Adapt max level to old version --- .../include/CGAL/Shape_detection/Efficient_RANSAC/Octree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shape_detection/include/CGAL/Shape_detection/Efficient_RANSAC/Octree.h b/Shape_detection/include/CGAL/Shape_detection/Efficient_RANSAC/Octree.h index 9e6aca8c3d6..66b3df09f9a 100644 --- a/Shape_detection/include/CGAL/Shape_detection/Efficient_RANSAC/Octree.h +++ b/Shape_detection/include/CGAL/Shape_detection/Efficient_RANSAC/Octree.h @@ -89,7 +89,7 @@ public: } std::size_t maxLevel() const { - return m_octree.max_depth_reached(); + return m_octree.max_depth_reached() - 1; } std::size_t offset() const { return m_offset; }