Skip to content

Commit

Permalink
New refinement method produces identical trees to original
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jun 18, 2020
1 parent 9cb7d85 commit 117ebde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Octree/include/CGAL/Octree.h
Expand Up @@ -312,19 +312,19 @@ namespace CGAL {
// Split on x
partitions[4] = std::partition(partitions[0], partitions[8],
[&](const Range_type &a) -> bool {
return (get(m_points_map, a)[0] < point[0]);
return (get(m_points_map, a)[0] < point[0] + 1e-6);
});

// Split on y, to the left of x
partitions[2] = std::partition(partitions[0], partitions[4],
[&](const Range_type &a) -> bool {
return (get(m_points_map, a)[1] < point[1]);
return (get(m_points_map, a)[1] < point[1] + 1e-6);
});

// Split on y, to the right of x
partitions[6] = std::partition(partitions[4], partitions[8],
[&](const Range_type &a) -> bool {
return (get(m_points_map, a)[1] < point[1]);
return (get(m_points_map, a)[1] < point[1] + 1e-6);
});

// Split on z, to the left of y and the left of x
Expand Down

0 comments on commit 117ebde

Please sign in to comment.