Commit 07a8b119 authored by Sam Horvath's avatar Sam Horvath
Browse files

COMP: Removed version guard. Quick fix for Slicer VTK compilation

parent 117f4726
......@@ -28,6 +28,7 @@
#include <vtkSphereSource.h>
#include <vtkGlyph3D.h>
namespace imstk
{
VTKPointSetRenderDelegate::VTKPointSetRenderDelegate(std::shared_ptr<PointSet> mesh) :
......@@ -53,13 +54,9 @@ VTKPointSetRenderDelegate::VTKPointSetRenderDelegate(std::shared_ptr<PointSet> m
auto glyph = vtkSmartPointer<vtkGlyph3D>::New();
#if VTK_MAJOR_VERSION <= 5
glyph->SetSource(sphere->GetOutput());
glyph->SetInput(selectPoints->GetOutput());
#else
glyph->SetSourceConnection(sphere->GetOutputPort());
glyph->SetInputData(pointsPolydata);
#endif
m_geometry->m_dataModified = false;
// Update Transform, Render Properties
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment