Trying including: #include "vtkDataSet.h" #include "vtkImageData.h" and using this: vtkContourFilter *contours = vtkContourFilter::New(); contours->SetInput((vtkDataSet *)sample->GetOutput()); and compiling. It works !!! Thank you very much for your smart tip. Philippe