X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkPlaneClipPolyData.cxx;h=9e63987690a16c1fcd6fb8757738a5505ffb18ca;hb=9e8c95c96acaea8851733d20090bf6de7eed1269;hp=e3432ee67f12f5bdb9eec91466d2d5668e8385ca;hpb=5a2f51cf157e546e9354dd359e2478cdf4e2d040;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();