Skip to content

Commit

Permalink
Eliminate m_max_depth_reached value
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Aug 17, 2020
1 parent d21f428 commit a387da4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Octree/include/CGAL/Octree.h
Expand Up @@ -124,7 +124,6 @@ class Octree {
private: // data members :

Node m_root; /* root node of the octree */
uint8_t m_max_depth_reached = 0; /* octree actual highest depth reached */

Point_range &m_ranges; /* input point range */
Point_map m_points_map; /* property map: `value_type of InputIterator` -> `Point` (Position) */
Expand Down Expand Up @@ -217,9 +216,6 @@ class Octree {
if (!m_root.is_leaf())
m_root.unsplit();

// Make sure the max depth is reset as well
m_max_depth_reached = 0;

// Reset the side length map, too
m_side_per_depth.resize(2);

Expand All @@ -241,10 +237,7 @@ class Octree {
split((*current));

// Check if we've reached a new max depth
if (current->depth() == m_max_depth_reached) {

// Update the max depth
m_max_depth_reached = current->depth() + 1;
if (current->depth() == max_depth_reached()) {

// Update the side length map
m_side_per_depth.push_back(*(m_side_per_depth.end() - 1) / 2);
Expand Down

0 comments on commit a387da4

Please sign in to comment.