Skip to content

Commit

Permalink
Octree now outperforms naive for over 1000 points
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jul 16, 2020
1 parent 23d6fb2 commit 635bc89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Octree/include/CGAL/Octree.h
Expand Up @@ -505,7 +505,6 @@ class Octree {

// Check whether the new distance is an improvement
if (new_distance_squared < largest_radius_squared_found) {
std::cout << out.size() << std::endl;

// Make room for the new point if necessary
if (out.size() == out.capacity())
Expand All @@ -523,7 +522,6 @@ class Octree {

// Update the distance
largest_radius_squared_found = out.back().second;
std::cout << largest_radius_squared_found << std::endl;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Octree/test/Octree/test_octree_nearest_neighbour.cpp
Expand Up @@ -154,8 +154,8 @@ void kdtree_vs_octree(std::size_t dataset_size) {
int main(void) {

// naive_vs_octree(100);
// naive_vs_octree(1000);
// naive_vs_octree(10000);
naive_vs_octree(1000);
naive_vs_octree(10000);
naive_vs_octree(100000);
//
// kdtree_vs_octree(100);
Expand Down

0 comments on commit 635bc89

Please sign in to comment.