[Paraview] [EXTERNAL] rgb lookup table

Scott, W Alan wascott at sandia.gov
Fri Jun 8 18:41:51 EDT 2018


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 <paraview-bounces at public.kitware.com> on behalf of Claudio via ParaView <paraview at public.kitware.com>
Reply-To: Claudio <cv39100 at yahoo.com>
Date: Wednesday, June 6, 2018 at 8:46 AM
To: "paraview at public.kitware.com" <paraview at public.kitware.com>
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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180608/99b4a280/attachment.html>


More information about the ParaView mailing list