From 6023f1a7716aa09fbeabdae80091fa90d7ccc3a6 Mon Sep 17 00:00:00 2001 From: Jackson Campolattaro Date: Tue, 14 Jul 2020 16:13:35 -0400 Subject: [PATCH] Add Node argument to simple recursive algorithm --- Octree/include/CGAL/Octree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Octree/include/CGAL/Octree.h b/Octree/include/CGAL/Octree.h index 5681794722e..0a0d64ac1fd 100644 --- a/Octree/include/CGAL/Octree.h +++ b/Octree/include/CGAL/Octree.h @@ -339,7 +339,7 @@ class Octree { points_list.reserve(k); // Invoking the recursive function adds those points to the vector (passed by reference) - nearest_k_neighbours_recursive_simple(p, points_list); + nearest_k_neighbours_recursive_simple(p, points_list, m_root); // Add all the points found to the output for (auto &point : points_list) @@ -428,7 +428,7 @@ class Octree { reassign_points(node, node.value().begin(), node.value().end(), center); } - void nearest_k_neighbours_recursive_simple(const Point &p, std::vector &out) const { + void nearest_k_neighbours_recursive_simple(const Point &p, std::vector &out, const Node &node) const { out.push_back(p); }