[vtkusers] How to create XYZ plot?
David Doria
daviddoria+vtk at gmail.com
Wed Dec 16 09:41:28 EST 2009
On Wed, Dec 16, 2009 at 9:36 AM, 董理 <dongli2020 at gmail.com> wrote:
> Hi all,
> What is the most convenient way to do this job? My data is two dimensional,
> say f(nx,ny), and the coordinate values along each axes, say x(nx) and y(ny)
> respectively. I tried to use vtkRectilinearGrid dataset to interfacing my
> data into VTK. I set x and y coordinates to vtkRectilinearGrid, and a
> virtual z coordinate, but what about f? How can I add it into the dataset?
> Thank you for help!
>
> Best regards,
> DONG Li
Dong Li,
This example creates a grid of X,Y points and adds a random Z
component. There is no requirement for these points to be arranged in
a grid.
http://www.vtk.org/Wiki/Triangulate_a_Terrain_Map
Take a look and let us know if that helps.
Thanks,
David
More information about the vtkusers
mailing list