[vtk-developers] Question about textures and vtkGlyph3D

Prabhu Ramachandran prabhu_r at users.sf.net
Sat Jul 9 16:45:52 EDT 2005


Hi,

I noticed an interesting modification to the behavior of vtkGlyph3D in
CVS.  The specific checkin is Revision 1.114 (by Henderson).  The
change basically copies the tcoords data from the input points to the
*entire* glyph.  I don't understand the logic behind doing this for
textures.  Why would someone want to apply glyph3d to some polydata
and then apply a texture with the value at each input point mapped to
each glyph?  How is that any different from using scalars and a lookup
table?

OTOH, by copying the tcoords of the source glyph over to the
replicated glyphs, some neat things can be done.  With VTK-4.4 this
meant one could apply a texture to the actor representing the result
of the vtkGlyph3D and get nicely textured objects replicated in
different places.

Am I missing something?

cheers,
prabhu



More information about the vtk-developers mailing list