[vtkusers] Advice re 3D histograms
EDWARDS Greg
greg.edwards at tenix.com
Mon Apr 22 21:17:40 EDT 2002
Hi,
I'm looking for advice or demo code to make a terrain-height array into a 3D
histogram array, similar to simple spreadsheet displays of arays of data.
I have a 2 dimensional array of data, call it a landscape or terrain for
ease of description, although it's really just a 2D matrix of numbers. The
array has scalar height item at each point of the (regular) array. I've got
code to display this as a synthetic "terrain", coloured by height from a
LUT, using a chain of vtkStructuredPointsReader ->
vtkStructuredPointsGeometryFilter -> vtkWarpScalar -> vtkCastToConcrete
-.vtkPolyDataNormals -> vtkPolyDataMapper, with LUT feeding into mapper. I
can put glyphs (like squares) at the data points and warp them to the right
height, colour them with a LUT etc.
I'm just having a headache trying to use a cube glyph, and warp it's height
to the correct value to make a 3D histogram. The extra "dimension" of
warping the size ratehr than position of the glyph is defeating me. Any tips
appreciated.
Thanks,
Greg.
Greg Edwards,
Simulation Group, Electronic Systems Division, Tenix Defence Pty Ltd,
100 Arthur St, North Sydney, NSW, 2060.
+ 61 2 9963 9600 sw, 9963 9725 desk, 9964 0988 fax, 0419 570 546 mobile
greg.edwards at tenix.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020423/5b2dc2e2/attachment.htm>
More information about the vtkusers
mailing list