[vtkusers] vtkWarpScalar question

Doug Henry brilligent at gmail.com
Thu Jun 30 09:06:00 EDT 2005


problem seems to be getting the filter data in to vtkWarpScalar, the example 
in my book (pg. 107) already uses GetPolyDataOutput to retrieve data from 
the warp object.

no matching function for call to `vtkWarpScalar::SetInput(vtkPolyData*)'
candidates are: void vtkPointSetToPointSetFilter::SetInput(vtkPointSet*)


On 3/16/05, David Cole <david.cole at kitware.com> wrote:
> 
> Doug Henry wrote: 
> 
> I have a set of data representing a surface.  I have it stored in a
> vtkImageData object and I view it as a 2D colormapped image.  I saw an
> example in the book which used vtkWarpScalar to scale the data to make
> it 3D.  If I try to pass the output of vtkImageDataGeometryFilter to
> the input of vtkWarpScalar I get a compile error that
> vtkWarpScalar->SetInput does not take vtkPolyData*, yet this is what
> all of the examples do.  What am I missing?  I am using the 4.4
> latest.
>   
>  Not sure why the TCL example on p. 107 doesn't translate as-is into C++. 
> Try using *GetPolyDataOutput* (inherited in vtkWarpScalar from its parent 
> class vtkPointSetAlgorithm) which simply does a safe downcast of GetOutput 
> into a vtkPolyData object. Also see the documentation for vtkWarpScalar 
> here: http://www.vtk.org/doc/nightly/html/classvtkWarpScalar.html The help 
> description claims "...the filter passes both its point data and cell data 
> to its output..." Please let me know if this solves the problem...
> 
> HTH,
> David
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050630/4f2e6a9a/attachment.htm>


More information about the vtkusers mailing list