<html><div style='background-color:'><DIV>
<P>James,</P>
<P>&nbsp; I noticed this behaviour also, just a week ago in fact. I dont know if it is new, or maybe always been that way. My interpretation was: if two points with low and high values were connected,&nbsp;the Red-Blue LUT resulted in shading from red to blue via purple, ie a mixture of red and blue. As though the interpolation takes a shortcut around the back making the LUT circular. I would much prefer it behaved as expected, ie non-circular. I suppose the same behaviour would be seen regardless of the colour range, I was actually using a Blue (low values) to Red (high values) LUT.</P>
<P>Anyone out there have any ideas on how to remedy this?</P>
<P>&nbsp; Dave<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: James Perry <PERRYJ@SIMMETRIX.COM>
<DIV></DIV>&gt;To: vtkusers@public.kitware.com 
<DIV></DIV>&gt;Subject: [vtkusers] Strange Color Interpolation 
<DIV></DIV>&gt;Date: Thu, 18 Oct 2001 18:22:16 -0400 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hello fellow VTK users, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; Attached is a very small image (disp.jpg) of a simple finite element 
<DIV></DIV>&gt;analysis done on a single-hexagonal cell. The VTK script is attached 
<DIV></DIV>&gt;(really_simple.tcl, for the data in disp_hex.vtk). We can't understand why the 
<DIV></DIV>&gt;colors are being interpolated the way they are, the scalar bar in the figure 
<DIV></DIV>&gt;uses the same lookup table as the mapper used for the hex actor. In fact, 
<DIV></DIV>&gt;towards the middle of the color gradient is a purple-ish color that isn't even 
<DIV></DIV>&gt;represented in the color range on the scalar bar. For the solution, we'd expect 
<DIV></DIV>&gt;to see a linear interpolation from the value 0 to 1 in the y-direction (in the 
<DIV></DIV>&gt;direction of the color gradient), similar to that shown on the scalar bar. 
<DIV></DIV>&gt; We have tried this problem using tetrahedral elements, and output a vtk file 
<DIV></DIV>&gt;for cell type 10, and obtain the same colors shown in the attached figure. In 
<DIV></DIV>&gt;fact, we have even used cell type 9 (VTK_QUAD) on the 6 surfaces with the same 
<DIV></DIV>&gt;vector data in disp_hex.vtk, yet we obtain the same results as shown in the 
<DIV></DIV>&gt;attached figure. We are running vtk 3.2. 
<DIV></DIV>&gt; If someone could explain why the colors are interpolated this way, and 
<DIV></DIV>&gt;possibly how we can get the correct color-mapping (the linear interpolation as 
<DIV></DIV>&gt;shown in the scalar bar), we would certainly appreciate any suggestions. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Thank you, 
<DIV></DIV>&gt;Jim Perry 
<DIV></DIV>&gt;========================================================================== 
<DIV></DIV>&gt; _____ __ _ 
<DIV></DIV>&gt; / __(_)_ _ __ _ ___ / /_____(_)_ __ 
<DIV></DIV>&gt; _\ \/ / ' \/ ' \/ -_) __/ __/ /\ \ / 
<DIV></DIV>&gt; /___/_/_/_/_/_/_/_/\__/\__/_/ /_//_\_\ 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;.......................................................................... 
<DIV></DIV>&gt; Simmetrix Inc. (518) 348-1639 
<DIV></DIV>&gt; 10 Halfmoon Executive Park Drive 
<DIV></DIV>&gt; Clifton Park, New York 12065 support@simmetrix.com 
<DIV></DIV>&gt;========================================================================== 
<DIV></DIV>&gt;&lt;&lt; disp.jpeg &gt;&gt; 
<DIV></DIV>&gt;&lt;&lt; really_simple.tcl &gt;&gt; 
<DIV></DIV>&gt;&lt;&lt; disp_hex.vtk &gt;&gt; 
<DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html>