Skip to content

Commit

Permalink
Add Node argument to simple recursive algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jul 14, 2020
1 parent 172187d commit 6023f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Octree/include/CGAL/Octree.h
Expand Up @@ -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)
Expand Down Expand Up @@ -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<Point> &out) const {
void nearest_k_neighbours_recursive_simple(const Point &p, std::vector<Point> &out, const Node &node) const {

out.push_back(p);
}
Expand Down

0 comments on commit 6023f1a

Please sign in to comment.