Put your data into a vtkDoubleArray & construct a vtkImageData from it. Then pass it do a vtkWarpScalars to warp every point in the normal direction by the amount in the array.<br><br>I do it with Terrain maps/heightmaps often.
<br><br><div><span class="gmail_quote">On 8/27/06, <b class="gmail_sendername">Andy Treisch</b> <<a href="mailto:Andy.Treisch@gmx.de">Andy.Treisch@gmx.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All!<br><br>I want to visualize a characteristik map like the Matlab "mesh" and "surf"<br>commands do.<br>Lets take the following map for example:<br><br>0.00 0.00 0.00 0.00<br>0.00 0.15
0.40 0.70<br>0.00 0.20 0.50 0.90<br>0.00 0.30 0.70 1.00<br><br>I created a vtkPolyData adding vtkPoints with the data from the map. Points<br>are<br>(0,0,0)..(0,3,0), (1,0,0)..(1,3,0.7), ... , (3,3,1)
<br><br>Does there exist a filter, which can calculate the Polygons for the meshgrid<br>without<br>my Interaction? Currently I have created an additional vtkCellArray where I<br>have<br>to calculate the strips (4 Points,
i.e. (0,0,0), (0,1,0), (1,0,0),<br>(1,1,0.15)) Then I add them<br>to a vtkPolyDataMapper via SetPoints and SetStrips Method. As I said before<br>I would<br>really like to use a vtk Filter doing the work for me.<br><br>There is another reason, why I am trying to use vtk and not Matlab :)
<br>My application will get time-discrete data. This means, my input Data<br>will change during running the application and I want to display an<br>"animated"<br>visualization. If I assign a new Pointset to my vtkPolyData, calculate the
<br>new<br>Polygons and then call the Update() method on my vtkPolyDataMapper, is<br>that enough to get the new display of the characteristic map? Or do I have<br>to<br>do something more with the vtkRenderWindow or sth. else?
<br><br>I have uploaded a picture of what I want to get and my current sourcefile to<br>this location:<br><a href="http://www-public.tu-bs.de/~y0018227/vtk">http://www-public.tu-bs.de/~y0018227/vtk</a><br><br><br>Thanks in advance for helping me,
<br><br>Andy Treisch<br><br><br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br><br clear="all">
<br>-- <br>----------------------------------------<br>Randall Hand<br>Visualization Scientist<br>ERDC MSRC-ITL