[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

___________________________________________
Andrew J. P. Maclean
Postal:
Australian Centre for Field Robotics
The Rose Street Building J04
The University of Sydney  2006  NSW
AUSTRALIA
 
Room:  106
Phone: +61 2 9351 3283
Fax:   +61 2 9351 7474
       http://www.acfr.usyd.edu.au/

___________________________________________


-----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
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
#include "vtkImageData.h"
statement at the top of your file. Hence the compiler doesn't know it's
a
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)

JB






More information about the vtkusers mailing list