[vtkusers] LUT

Csaba Palotai c0palo01 at louisville.edu
Mon Sep 23 12:00:06 EDT 2002


Hi List,

I have a volume with different species in it and would like to color it 
based on which gridbox has which species.
For this I use an array and the value for an element is 1 if it's water, 
2 if ammonia, 3 if both, 4 if none. (additional species will be added 
later)
I'd like to color my graph based on these values, which happens fine 
with the original LUT.
When I create my own because I need some certain colors (white for 
water, tan for ammonia, etc.)
So I use
lut->SetNumberOfColors(4);
lut->Build();
but then when I try to assign colors for the values it just doesn't work.
( I assign this LUt later to the mapper so the problem is something else)

Anybody with any ideas/suggestions/experience?
Any help is appreciated

Regards,
Csaba

***  All gave some... Some gave all ***   FDNY, NYPD   September 11, 
2001.

***************
Csaba Palotai

Research Assistant

Comparative Planetology Laboratory
104 Sackett Hall,  University of Louisville
Louisville, KY 40292

phone: (502) 852-3927            email: csaba.palotai at louisville.edu
fax: (502) 852-6053                  URL:www.louisville.edu/research/cpl


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1196 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020923/1f6159da/attachment.bin>


More information about the vtkusers mailing list