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