[vtkusers] Re: Please help me out on this one
Malcolm Drummond
malcolm at geovision.co.za
Wed Feb 25 11:52:46 EST 2004
Hi David
I was just about to post this ...
To do what you want using existing vtkGlyph3D I think you'll have to create dummy vectors from one of your arrays - there is no provision at the moment to scale and color from different scalar arrays (I'd be happy to be proved wrong). The other easy alternative is to use vtkProgrammableGlyphFilter (have a look first at progGlyphs.tcl and progGlyphsBySource.tcl in graphics/tests/tcl and at the source code of vtkGlyph3D to see how glyphing is implemented).
HTH
Malcolm
----- Original Message -----
From: david michell
To: malcolm at geovision.co.za
Sent: Wednesday, February 25, 2004 5:43 PM
Subject: Please help me out on this one
Sir,
I was looking through the archives for some help on Glyph3D and I came across your message.
I have an unstructuredgrid of points, and I want to represent each point as a glyph(sphere).
I have to arrays associated with the points, I want to use one array to scale the glyph and the other array to colour the glyph.
How do I do that?
Please help me out.
Thanking you,
David Michell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040225/649e710e/attachment.htm>
More information about the vtkusers
mailing list