<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Doug Henry wrote:
<blockquote cite="mid66f59a45050315134916812e58@mail.gmail.com"
type="cite">
<pre wrap="">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.
</pre>
</blockquote>
Not sure why the TCL example on p. 107 doesn't translate as-is into
C++. Try using <b>GetPolyDataOutput</b> (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: <a
href="http://www.vtk.org/doc/nightly/html/classvtkWarpScalar.html">http://www.vtk.org/doc/nightly/html/classvtkWarpScalar.html</a>
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...<br>
<br>
HTH,<br>
David<br>
<br>
</body>
</html>