X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkMeshCutByAxis.cxx;h=70a8429bff556c75a14f0b52022c6f212f9e3876;hb=5b1af4fb7d491747f57465950509dc2fcc7b07a6;hp=111efb526a8a5b24e53b26dea94f5363cc59ee82;hpb=3582c0f9b8380fde739856aa6a188da3262cf03b;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshCutByAxis.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshCutByAxis.cxx index 111efb5..70a8429 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshCutByAxis.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshCutByAxis.cxx @@ -39,7 +39,12 @@ void MeshCutByAxis::Process() vtkPlane *clipPlane = vtkPlane::New(); vtkBox *clipBox = vtkBox::New(); vtkClipPolyData *clipper = vtkClipPolyData::New(); +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 clipper -> SetInput( bbGetInputIn() ); +#else + clipper -> SetInputData( bbGetInputIn() ); +#endif clipper->SetInsideOut( bbGetInputInsideVol() ); int a; // correction border