X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FSurface.cxx;h=5f4f710c4ac59a7c2fec39802c5fdd7129a2ee8e;hb=d43c8fa374c578decfdcf355ec6dca7cb7216de8;hp=0933cfdc6c494f201b16687621d1eb8b645d1255;hpb=73f77fd5de4f2a23dc595e8e7017dd9b586dddcc;p=creaRigidRegistration.git diff --git a/lib/Surface.cxx b/lib/Surface.cxx index 0933cfd..5f4f710 100644 --- a/lib/Surface.cxx +++ b/lib/Surface.cxx @@ -206,10 +206,20 @@ void Surface::surface(vtkImageData* imageData) vtkPolyData* surfaceData = vtkPolyData::New(); surfaceData->SetPolys(surfaceCells); surfaceData->SetPoints(surfacePoints); +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 surfaceData->Update(); +#else + // .. +#endif vtkPolyDataMapper* surfaceMapper = vtkPolyDataMapper::New(); +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 surfaceMapper->SetInput(surfaceData); +#else + surfaceMapper->SetInputData(surfaceData); +#endif surfaceMapper->Update(); surfaceResult->SetMapper(surfaceMapper);