[vtkusers] Scalar color / LookupTable / Interpolation problem...

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Dec 9 11:52:26 EST 2004


Jacques,

	Is this what you are looking for ?

  currentMapper->SetInterpolateScalarsBeforeMapping(1);

	Thanks for providing code, it is always easier to understand the problem.

HTH
Mathieu

Jacques Charreyron-F264897 wrote:
> Dear vtk users,
> 
> I guess i have the same problem as the one discribed in : 
> http://public.kitware.com/pipermail/vtkusers/2004-April/073604.html
> but for thresholding purpose.
> 
> Let's assume we have a quad in an unstructured grid with the following values at
> each vertex.
> We assign to the data set mapper a lut with ten colors and a color range from 0
> to 1 
> 
> 0.0-------------------  0.5
> |                         |
> |                         |
> 0.5 -------------------  1.0
> 
> The resulting rendering is a continuous color interpolation with millions of
> colors between vertices where I would like to have a color mapping using only 10
> colors. The SetInterpolationTo* method does not help.
> 
> Here is a code snippet to reproduce the behavior





More information about the vtkusers mailing list