Skip to content

Commit

Permalink
[OCTREE] To avoid the display of spurious point, check the detph of a…
Browse files Browse the repository at this point in the history
…n octree node before to print it.
  • Loading branch information
frozar committed Aug 30, 2017
1 parent 418342b commit f8a2acd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/octree_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ class OctreeViewer

for (tree_it = octree.begin(depth); tree_it!=tree_it_end; ++tree_it)
{
if (tree_it.getCurrentOctreeDepth () != depth)
continue;

Eigen::Vector3f voxel_min, voxel_max;
octree.getVoxelBounds(tree_it, voxel_min, voxel_max);

Expand Down

0 comments on commit f8a2acd

Please sign in to comment.