[vtkusers] Glyph coloring by vector magnitud

Darshan Pai darshanpai at gmail.com
Fri Feb 26 13:29:40 EST 2010


The second link behaves awkward . If I set the following combination
unsigned char r[3] = {1,255,1};
  unsigned char g[3] = {1,255,1};
  unsigned char b[3] = {1,1,255};
  colors->InsertNextTupleValue(r);
  colors->InsertNextTupleValue(g);
  colors->InsertNextTupleValue(b);

This will work properly .

Any time I put a value other than 1 in r[0], g[0] and b[0] I get wrong
results. ie a 0 will make the cube not visible . A higher value makes only
one cube .. Maybe a bug in implementation?

I even tried rgba instead of rgb .. No luck

On Mon, Feb 22, 2010 at 5:18 PM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:

> Here is an example of scaling glyphs:
> http://www.vtk.org/Wiki/VTK/Examples/Visualization/ScaleGlyphs
>
> Here is an example of coloring glyphs - it currently only displays one
> cube, so something is wrong:
> http://www.vtk.org/Wiki/VTK/Examples/Visualization/ColorGlyphs
>
> Thanks,
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100226/cb5fc0e3/attachment.htm>


More information about the vtkusers mailing list