Skip to content

Commit

Permalink
Merge pull request #1072 from fran6co/patch-11
Browse files Browse the repository at this point in the history
Fixes sphere rendering in VTK 6.x
  • Loading branch information
taketwo committed Jan 9, 2015
2 parents 28273f8 + d32fa31 commit bd83085
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/src/render_views_tesselated_sphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ pcl::apps::RenderViewsTesselatedSphere::generateViews() {
vtkSmartPointer<vtkLoopSubdivisionFilter> subdivide = vtkSmartPointer<vtkLoopSubdivisionFilter>::New ();
subdivide->SetNumberOfSubdivisions (tesselation_level_);
subdivide->SetInputConnection (ico->GetOutputPort ());
#if VTK_MAJOR_VERSION>=6
subdivide->Update();
#endif

// Get camera positions
vtkPolyData *sphere = subdivide->GetOutput ();
Expand Down

0 comments on commit bd83085

Please sign in to comment.