[vtkusers] Glyph coloring by vector magnitud
Sebastian Gatzka
sebastian.gatzka at stud.tu-darmstadt.de
Mon Feb 22 09:07:52 EST 2010
Hello World.
Meanwhile I made some nice glyphs, but am stuck with the coloring.
I switched on SetColorModeToColorByVector() which may be the coloring by
vector magnitude?
vtkGlyph3D *glyph = vtkGlyph3D::New();
glyph->SetInput(gridCellCenters->GetOutput());
glyph->SetSourceConnection(arrow->GetOutputPort());
glyph->SetScaleModeToDataScalingOff();
glyph->SetColorModeToColorByScale();
glyph->SetScaleFactor(0.3);
Unfortunately all glyphs are colored the same (blue).
Do I have to do anything further to get propper coloring? Maybe with the
mapper?
See you. Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100222/80a63613/attachment.htm>
More information about the vtkusers
mailing list