Skip to content

Commit

Permalink
[OCTREE] Fix the legend overlap.
Browse files Browse the repository at this point in the history
  • Loading branch information
frozar committed Sep 7, 2017
1 parent a78dad9 commit 23ad9d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/octree_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ class OctreeViewer
viz.addText ("a -> Increment displayed depth", 10, 155, 0.0, 1.0, 0.0, "key_a_t");
viz.addText ("z -> Decrement displayed depth", 10, 140, 0.0, 1.0, 0.0, "key_z_t");
viz.addText ("v -> Toggle octree cubes representation", 10, 125, 0.0, 1.0, 0.0, "key_v_t");
viz.addText ("b -> Toggle centroid points representation", 10, 125, 0.0, 1.0, 0.0, "key_b_t");
viz.addText ("n -> Toggle original point cloud representation", 10, 110, 0.0, 1.0, 0.0, "key_n_t");
viz.addText ("s/w -> Surface/Wireframe representation", 10, 95, 0.0, 1.0, 0.0, "key_sw_t");
viz.addText ("b -> Toggle centroid points representation", 10, 110, 0.0, 1.0, 0.0, "key_b_t");
viz.addText ("n -> Toggle original point cloud representation", 10, 95, 0.0, 1.0, 0.0, "key_n_t");

//set current level to half the maximum one
displayedDepth = static_cast<int> (floor (octree.getTreeDepth() / 2.0));
Expand Down Expand Up @@ -336,11 +335,12 @@ class OctreeViewer
multiActor->GetProperty ()->SetColor (1.0, 1.0, 1.0);
multiActor->GetProperty ()->SetAmbient (1.0);
multiActor->GetProperty ()->SetLineWidth (1);
multiActor->GetProperty ()->EdgeVisibilityOn ();
multiActor->GetProperty ()->SetOpacity (1.0);

if (wireframe)
{
multiActor->GetProperty ()->SetRepresentationToWireframe ();
multiActor->GetProperty ()->EdgeVisibilityOn ();
multiActor->GetProperty ()->SetOpacity (1.0);
}
else
{
Expand Down

0 comments on commit 23ad9d2

Please sign in to comment.