[vtkusers] color of elements out of mapper's scalarrange

Stéphanie Prudhomme stephanie.prudhomme at incka.net
Tue May 17 06:28:35 EDT 2005


Hi,

I have an UnstructuredGrid and scalar values.

vtkDoubleArray var
vtkUnstructuredGrid aPolygonGrid
vtkDataSetMapper aPolygonMapper
....
    aPolygonMapper SetInput aPolygonGrid
    [aPolygonGrid GetPointData] SetScalars var
    aPolygonMapper SetScalarRange min max
....
with min > the min of var and max < the max of var


I would like points for which the value is not in the range appears in other color (not the color of the extremum of the mapper)

How can I do?

Thank a lot,  

S. Prudhomme
VTK4.2, Windows
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050517/b2b88d84/attachment.htm>


More information about the vtkusers mailing list