]> Creatis software - creaRigidRegistration.git/blobdiff - lib/Surface.cxx
#3113 crea Rigid Registration Bug New Normal - branch vtk7itk4 compilation with...
[creaRigidRegistration.git] / lib / Surface.cxx
index 0933cfdc6c494f201b16687621d1eb8b645d1255..5f4f710c4ac59a7c2fec39802c5fdd7129a2ee8e 100644 (file)
@@ -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);