]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkPlaneClipPolyData.cxx
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / vtk / src / bbvtkPlaneClipPolyData.cxx
index e3432ee67f12f5bdb9eec91466d2d5668e8385ca..9e63987690a16c1fcd6fb8757738a5505ffb18ca 100644 (file)
@@ -26,7 +26,14 @@ void PlaneClipPolyData::Process()
        plane->SetNormal(normal[0],normal[1],normal[2]);
 
        vtkClipPolyData* clipper = vtkClipPolyData::New();
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
        clipper->SetInputConnection(inPolyData->GetProducerPort());
+#else
+       clipper->SetInputData(inPolyData);
+#endif
+
        clipper->SetClipFunction(plane);
        clipper->Update();