X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkPlaneClipPolyData.cxx;h=9e63987690a16c1fcd6fb8757738a5505ffb18ca;hb=84bd7e760e867fc3fdb3e0b42247522fb1630cba;hp=e3432ee67f12f5bdb9eec91466d2d5668e8385ca;hpb=9a0cff4a61edd2b20bc0d7d00f4509193b8c50b6;p=bbtk.git diff --git a/packages/vtk/src/bbvtkPlaneClipPolyData.cxx b/packages/vtk/src/bbvtkPlaneClipPolyData.cxx index e3432ee..9e63987 100644 --- a/packages/vtk/src/bbvtkPlaneClipPolyData.cxx +++ b/packages/vtk/src/bbvtkPlaneClipPolyData.cxx @@ -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();