[vtkusers] Bizarre implicit casting error
Mathieu Malaterre
mathieu.malaterre at kitware.com
Fri Jan 23 12:27:24 EST 2004
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
More information about the vtkusers
mailing list