Hi Claudio,
I have never done this, but it sounds like you are looking for an annotation, 
rather than a continuous color map.  Could you flip to annotations, then color 
using an int?

Alan


From: ParaView <[email protected]> on behalf of Claudio via 
ParaView <[email protected]>
Reply-To: Claudio <[email protected]>
Date: Wednesday, June 6, 2018 at 8:46 AM
To: "[email protected]" <[email protected]>
Subject: [EXTERNAL] [Paraview] rgb lookup table

Hi,
I'm stuck with a problem concerning colors assignment to data.
I've a list of 8 tensors (here represented as circular ellipsoids, see short 
vtk file below)
I typically open the file and filter using ("tensor glyph").
Now I would like to assign to each tensor glyph a unique color specified by an 
rgba sequence (e.g. 0.1 0.3 0.2 1)
How can I do that? I tried to append a scalar lookup table followed by a rgba 
one but without success
Thanks
   -Claudio


# vtk DataFile Version 3.0
Random data to test tensors
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 8 float
0 0 0
1 0 0
0 1 0
1 1 0
0 0 1
1 0 1
0 1 1
1 1 1

POINT_DATA 8

TENSORS spherical_ellipsoid float
1 0 0
0 1 0
0 0 1

1 0 0
0 1 0
0 0 1

1 0 0
0 1 0
0 0 1

1 0 0
0 1 0
0 0 1

1 0 0
0 1 0
0 0 1

1 0 0
0 1 0
0 0 1

1 0 0
0 1 0
0 0 1

1 0 0
0 1 0
0 0 1

SCALARS sample_scalars float 1
LOOKUP_TABLE rgbtable
0
1
2
3
4
5
6
7

LOOKUP_TABLE rgbtable 8
0.2 0.4 0.3 1.0
04.0 2.0 1.0 1.0
0.4 1.0 0.2 1.0
1.0 1.0 0.7 1.0
0.2 0.0 5.0 1.0
1.0 0.2 1.0 1.0
2.0 1.0 1.0 1.0
0.0 1.0 0.9 1.0



_______________________________________________
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview

Reply via email to