<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello again, again...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When vtkLookupTable maps scalars to its
entries,</FONT></DIV>
<DIV><FONT face=Arial size=2>it usually takes the floor() value after aplying a
simple </FONT></DIV>
<DIV><FONT face=Arial size=2>ratio.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is it possible to tell vtkLookupTable to choose
nearest</FONT></DIV>
<DIV><FONT face=Arial size=2>value instead ??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I </FONT><FONT face=Arial size=2>would like to use
a even number of entries, and doing so it </FONT></DIV>
<DIV><FONT face=Arial size=2>is not possible to keep the negative to
positive change clear.</FONT></DIV>
<DIV><FONT face=Arial size=2>(ie. mapping a -x to x scalars to a 256 entries
colormap will</FONT></DIV>
<DIV><FONT face=Arial size=2>lead to a mapping of positive values to
the colorid 127, </FONT></DIV>
<DIV><FONT face=Arial size=2>which is less than half of the colormap, but I want
colorids </FONT></DIV>
<DIV><FONT face=Arial size=2><=127 for oceans (x<0) and colorids >127
for floor (x>0) </FONT><FONT face=Arial size=2>)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am currently using a 255 or 257 entries
lookuptable.</FONT></DIV>
<DIV><FONT face=Arial size=2>(then id 127 or 128 is exactly mapped to
x=0)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Seb</FONT></DIV></BODY></HTML>