[vtkusers] Problem with surface reconstruction and contour filter in C++.
jbiddiscombe at skippingmouse.co.uk
Mon Oct 14 13:22:08 EDT 2002
> 'vtkDataSetToPolyDataFilter::SetInput' : cannot convert parameter 1 from
> 'vtkImageData *' to 'vtkDataSet *'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
Recent cleanups of all the vtk classes have removed #include "stuff.h" from
many headers and you obviously haven't got a
statement at the top of your file. Hence the compiler doesn't know it's a
subclass of vtkDataSet. All the headers just state
now so you need to add it. It's a pain, but it make the build process
cleaner and faster (and it;s the right thing to do really)
More information about the vtkusers