[vtkusers] How to generate a 3D surface from a regular 2D array of elevations?

Steve Chall stevec at renci.org
Wed May 23 16:15:04 EDT 2007


I've ordered the three books but in the meantime I'm subsisting on online
and the docs installed with vtk.  Beginners' question:  Is there an example
of the following?  I want to read in a regular 2D array of double float
values and display it as a 3D surface, where the 2 indices for each array
element represent a location on the earth's surface  and the value of each
element represents an elevation.  In fact, I want to be able to display a
sequence of surfaces (representing a corresponding sequence of 2D arrays) of
elevations as an animation of interactively variable speed.   From what I
can see I need to get the data into a vtkPolyData object, after which I can
display it and manipulate its visual representation just like in the
tutorials.  But vtkPolyVertex, vtkTriangleStrip, and vtkUnstructuredGrid are
just a few of the candidates for an initial intra-VTK format, and it's not
clear to me which is most appropriate.  Thanks very much for any help you
may be able to provide.

 

-Steve C.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070523/52855b94/attachment.htm>


More information about the vtkusers mailing list