Thanks for your hint and code! Is ParaView easy to use? I have no experience with it so far. By the way, I am using Visual Studio 2005.<br><br><div><span class="gmail_quote">On 5/15/07, <b class="gmail_sendername">fred</b>
<<a href="mailto:fredmfp@gmail.com">fredmfp@gmail.com</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;">Janny Dong a écrit :
<br>> Hi, all<br>><br>> I have the data points like (X,Y,Z). (X,Y) is the position of the data<br>> points on the map. Z is the height that I am trying to represent with<br>> colors.<br>><br>> For example, the data are like
<br>><br>> {0,0,60.3}, {0,1, 60.2},{0,2,60.1},{0,3,60.0},<br>> {1,0,59.9},{1,1,59.8}, {1,2,59.7},{1,3,59.6},<br>> {2,0,59.6}, {2,1,59.5},{2,2,59.3},{2,3,59.5},<br>> {3,0,59.6}, {3,1,59.7}, {3,2,59.9}, {3,3,
60.1}<br>><br>> I tried to put my data in vtkDoubleArray and then create<br>> vtkImageData. Then I used vtkWarpScalar to get a 3D colored surface.<br>> Basically I'd like to generate a surface as MATLAB functions surf()
<br>> and meshgrid() do. I must have done something wrong in this procedure<br>> since I got nothing in the rendering window.<br>><br>> Is there any sample code for this? Or is there any better way to<br>> generate a color map out of such kind of data?
<br>><br>The short code attached should do the trick.<br>Then use your favorite 3D viz'.<br>With paraview, you should get what you want using ExtractSurface then<br>Warp (scalar) filters.<br><br><br>HTH.<br><br>--<br>
<a href="http://scipy.org/FredericPetit">http://scipy.org/FredericPetit</a><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><br><br></blockquote></div><br>