[vtkusers] vtkLookupTable colours

Phil Goddard philgoddard at telus.net
Sun Aug 10 20:33:15 EDT 2008


I have a question regarding the colours used by vtkLookupTable at the
breakpoints in the table.

Assume I have a vtkLookupTable with the following properties

lut->SetRange(0,3);
lut->SetNumberOfColors(3);

And that the colours generated are 0<red<1<green<2<blue<3

I believe that points with values <= 0 will be red, and that those >=3 will
be blue.
However what are the colours of points with values 1, and those with 2?

i.e. Do the ranges include their lower limit or their upper limit?

Thanks
Phil. 





More information about the vtkusers mailing list