[vtkusers] Simplest Way To : display normals (move normals to vectors)

Sebastien BARRE seb-ml-vtk at barre.nom.fr
Thu Sep 7 22:43:27 EDT 2000


At 22:29 07/09/00 -0400, You wrote:

 >contrib/examplesTcl/OBJReader.tcl uses Glyph3D to display normals.

Héhé, this is it, one of these tricks :), I'm feeling plain stupid :)

vtkGlyph3D glyph
     glyph SetInput ...
     glyph SetSource ...
     glyph SetVectorModeToUseNormal
     glyph SetScaleModeToScaleByVector

That was obvious :) The glyph has to be very simple, therefore if you 
replace the usual vtkConeSource or vtkSphereSource with a vtkLineSource, it 
does the trick. Deserves a FAQ or HOWTO, maybe one day...





More information about the vtkusers mailing list