[vtkusers] Bizarre implicit casting error

Luke J West ljw at soc.soton.ac.uk
Fri Jan 23 12:42:14 EST 2004


Thankyou Mathieu - you are quite right

I had included vtkPolyDataMapper but not vtkPolyData

all's fine now.

thanks


Quoting Mathieu Malaterre <mathieu.malaterre at kitware.com>:

> Luke J West wrote:
> > compiler output...
> > 
> > 
> > app.cpp:185: error: no matching function for call to
> `vtkWarpScalar::SetInput(
> >    vtkPolyData*)'
> > /local/ljw/vtk/VTK/include/vtk/vtkPointSetToPointSetFilter.h:57: error:
> candidates
> >    are: void vtkPointSetToPointSetFilter::SetInput(vtkPointSet*)
> > 
> > 
> > But vtkPolyData* IS a vtkPointSet* so what's the problem?
> > 
> > Both header files were #included
> 
> Are you 100% sure ?
> 
> Make sure you include:
> #include "vtkPolyData.h"
> 
> This example compile fine:
> http://vtk.org/cgi-bin/cvsweb.cgi/~checkout~/VTK/Graphics/Testing/Cxx/expCos.cxx
> 
> HTH
> Mathieu
> 
> 


Luke J West : Research Assistant : e-Science
--------------------------------------------
Rm. 566/12, School of Ocean & Earth Sciences
Southampton Oceanography Centre, Southampton
SO14 3ZH  United Kingdom
--------------------------------------------
Tel: +44 23 8059 4801  Fax: +44 23 8059 3052
Mob: +44 79 6107 4783




More information about the vtkusers mailing list