Hi,<br><br>David gave you a link to a VTK example. It is hosted on the VTK Wiki, where they are *a lot of* other examples. I think you will enjoy this parent page:<br> <a href="http://www.vtk.org/Wiki/VTK/Examples">http://www.vtk.org/Wiki/VTK/Examples</a><br>
<br>Especially the section named "Visualization". In VTK, the filtering process and the visualization pipeline are separated. so once you get the data you want, whatever how you got it, you can visualize it. Basically:<br>
Data -> Mapper -> Actor -> Renderer -> RenderWindow.<br><br>HTH<br>Jerome<br><br><div class="gmail_quote">2009/12/17 ¶Àí <span dir="ltr"><<a href="mailto:dongli2020@gmail.com">dongli2020@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi David,<div><br></div><div>Thank you for reply! But that example just creates vtkPolyData with vtkPoints, there is no code for mapping and rendering~ I am new to VTK, just get the general concept of VTK, but not quite familiar with the programming details. Can you show me a more concrete example? : )</div>
<div><br></div><div>DONG Li<br><br><div class="gmail_quote">2009/12/16 David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>></span><div><div></div><div class="h5">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>On Wed, Dec 16, 2009 at 9:36 AM, ¶Àí <<a href="mailto:dongli2020@gmail.com" target="_blank">dongli2020@gmail.com</a>> wrote:<br>
> Hi all,<br>
> What is the most convenient way to do this job? My data is two dimensional,<br>
> say f(nx,ny), and the coordinate values along each axes, say x(nx) and y(ny)<br>
> respectively. I tried to use vtkRectilinearGrid dataset to interfacing my<br>
> data into VTK. I set x and y coordinates to vtkRectilinearGrid, and a<br>
> virtual z coordinate, but what about f? How can I add it into the dataset?<br>
> Thank you for help!<br>
><br>
> Best regards,<br>
> DONG Li<br>
<br>
</div></div>Dong Li,<br>
<br>
This example creates a grid of X,Y points and adds a random Z<br>
component. There is no requirement for these points to be arranged in<br>
a grid.<br>
<br>
<a href="http://www.vtk.org/Wiki/Triangulate_a_Terrain_Map" target="_blank">http://www.vtk.org/Wiki/Triangulate_a_Terrain_Map</a><br>
<br>
Take a look and let us know if that helps.<br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div></div></div><br><br clear="all"><br>-- <br>×£ºÃ<br>¶Àí<br>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>