Réf:Re: [vtkusers] Scalar color / LookupTable / Interpolatio

Jacques Charreyron-F264897 Jacques.Charreyron at fr.michelin.com
Mon Dec 13 09:46:09 EST 2004


Hello,

I really think so, but is it avalaible in vtk 4.4.latest ?. I have downloaded
and it does not compile  ( method not found in vtkMapper). I can not use cvs
because of our hot firewall ... I have tried a limited manual update ... To be
continued....
Jacques Charreyron

__________________________________________________________
\
 \          Jacques Charreyron
  \          Société Michelin 
 



____________________Séparateur de messages____________________
Objet : Re: [vtkusers] Scalar color / LookupTable / Interpolation pr
Auteur :    mathieu.malaterre at kitware.com
Date :  09/12/2004 17:52

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