[vtkusers] Problem with surface reconstruction and contour filter in C++.

Andrew J. P. Maclean a.maclean at acfr.usyd.edu.au
Mon Oct 14 20:11:12 EDT 2002

Thanks for that. I forgot about the rationalisation of the header files!
However it still doesn't fix my problem, in that the contour filter is
not returning any data.


Andrew J. P. Maclean
Australian Centre for Field Robotics
The Rose Street Building J04
The University of Sydney  2006  NSW
Room:  106
Phone: +61 2 9351 3283
Fax:   +61 2 9351 7474


-----Original Message-----
From: John Biddiscombe [mailto:jbiddiscombe at skippingmouse.co.uk] 
Sent: Tuesday, 15 October 2002 03:22
To: a.maclean at acfr.usyd.edu.au; vtkusers at public.kitware.com
Subject: Re: [vtkusers] Problem with surface reconstruction and contour
filter in C++.

> 'vtkDataSetToPolyDataFilter::SetInput' : cannot convert parameter 1
> '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"
many headers and you obviously haven't got a
#include "vtkImageData.h"
statement at the top of your file. Hence the compiler doesn't know it's
subclass of vtkDataSet. All the headers just state
class vtkImageData;
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 mailing list