[vtkusers] How to create XYZ plot?

董理 dongli2020 at gmail.com
Wed Dec 16 23:11:55 EST 2009


Hi David,

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? : )

DONG Li

2009/12/16 David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
>

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
祝好
董理
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091217/b2f72dce/attachment.htm>


More information about the vtkusers mailing list