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.<br>
<br>
no matching function for call to `vtkWarpScalar::SetInput(vtkPolyData*)'<br>
candidates are: void vtkPointSetToPointSetFilter::SetInput(vtkPointSet*)<br><br>
<br><div><span class="gmail_quote">On 3/16/05, <b class="gmail_sendername">David Cole</b> &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  


<span id="st" name="st" class="st0">Doug</span> Henry wrote:
<blockquote cite="http://mid66f59a45050315134916812e58@mail.gmail.com" type="cite"><div><span class="e" id="q_102abddf00b4717a_1">
  <pre>I have a set of data representing a surface.  I have it stored in a<br>vtkImageData object and I view it as a 2D colormapped image.  I saw an<br>example in the book which used vtkWarpScalar to scale the data to make
<br>it 3D.  If I try to pass the output of vtkImageDataGeometryFilter to<br>the input of vtkWarpScalar I get a compile error that<br>vtkWarpScalar-&gt;SetInput does not take vtkPolyData*, yet this is what<br>all of the examples do.  What am I missing?  I am using the 
4.4<br>latest.<br>  </pre></span></div>
</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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/doc/nightly/html/classvtkWarpScalar.html
</a>
The help description claims &quot;...the filter passes both its point data
and cell data to its output...&quot; Please let me know if this solves the
problem...<br>
<br>
HTH,<br><span class="sg">
David<br>
<br>



</span></blockquote></div><br>