Skip to content

Commit

Permalink
Add largest_distance arg to simplified recursive algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jul 14, 2020
1 parent 6023f1a commit a8820a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 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, m_root);
nearest_k_neighbours_recursive_simple(p, points_list, m_root, std::numeric_limits<FT>::max());

// Add all the points found to the output
for (auto &point : points_list)
Expand Down Expand Up @@ -428,7 +428,8 @@ 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 Node &node) const {
void nearest_k_neighbours_recursive_simple(const Point &p, std::vector<Point> &out, const Node &node,
FT largest_distance) const {

out.push_back(p);
}
Expand Down

0 comments on commit a8820a4

Please sign in to comment.