diff --git a/apps/src/render_views_tesselated_sphere.cpp b/apps/src/render_views_tesselated_sphere.cpp index 6e73865d717..c37347fd6d1 100644 --- a/apps/src/render_views_tesselated_sphere.cpp +++ b/apps/src/render_views_tesselated_sphere.cpp @@ -120,7 +120,9 @@ pcl::apps::RenderViewsTesselatedSphere::generateViews() { // Get camera positions vtkPolyData *sphere = subdivide->GetOutput (); +#if VTK_MAJOR_VERSION<6 sphere->Update (); +#endif std::vector > cam_positions; if (!use_vertices_)