[vtkusers] Glyphs: color by one scalar, scale by another

Frank Conradie frank at qfin.net
Thu Oct 14 10:33:26 EDT 2004


Hi Craig

As far as I'm aware, you will have to use scalars for the one and vectors
for the other value, e.g:

glyphs.SetColorModeToColorByScalar()
glyphs.SetScaleModeToScaleByVector()

Frank Conradie
Rossland, BC, Canada


----- Original Message -----
From: "Craig N. Scott" <craig.scott at csiro.au>
To: <vtkusers at vtk.org>
Sent: Wednesday, October 13, 2004 6:51 PM
Subject: [vtkusers] Glyphs: color by one scalar, scale by another


> Hi all. Anyone know if it is possible to have the color and scaling of
> vtkGlyph3D's controlled by *different* scalars? I need the "radius"
> scalar to control the size of a sphere glyph, but I need each sphere
> colored according to a different scalar, like "velocity".
>
> I eventually need to do this with vectors instead of scalars too, but I
> am assuming the solution to the above would be similar for vectors.
>
> Any suggestions appreciated. Thanks in advance.
>
> --
> Dr Craig Scott, CSIRO (CMIS)
> Melbourne, Australia
>
> Computers are easy to reboot. Attitudes are much harder.
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list