[vtkusers] vtkLookUpTable not well defined for NaNs

Sarah Macumber S.Macumber at QuestReliability.com
Tue Sep 30 20:06:14 EDT 2008


Hello,

 

I was hoping someone could help with mapping scalar data containing NaNs
through a vtkLookUpTable where one wants the NaNs to be a certain color.
Internally vtkLookUpTable uses the range to determine the index of the
color used for a specific scalar value:

 

                index = (value-min)/(max-min)*(N-1)

 

which means that NaNs do not have well defined index.  Currently, NaN's
default to an index of 0.  Changing the 0th color value conflicts with
the min scalar value being displayed which also has an index of 0.

 

Is there any way to set the color of a NaN using a vtkLookUpTable
without it conflicting with the viewable data?

 

Thanks,

Sarah

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080930/cf642a87/attachment.htm>


More information about the vtkusers mailing list