[Paraview] Problem with colouring in ParaView3
fred
fredmfp at gmail.com
Mon Aug 20 04:01:56 EDT 2007
Raashid Baig a écrit :
>
> I am drawing a glyph at each point with a sphere as a source.
> I want the spheres to be colored according to the color specified in
> the LOOKUP_TABLE colors. The glyphs get drawn without any problem ,
> but when I want to color them according to color in the file (by
> changing the Dispaly property, Color by colors) nothing happens the
> spheres are always displayed in blue, no mater what is the color in
> the file.
> Am I doing something wrong ? if yes please correct me.
>
Hmm, I would say: I guess so ;-)
You have to call your LUT _and_ then define it.
Look at the VTK file formats documentation page 8.
This should do the trick:
# vtk DataFile Version 2.0
Molecule points
ASCII
DATASET POLYDATA
POINTS 2 float
0.0 0.0 -1.29308565
0.0 0.0 1.29308565
LINES 2 6
2 0 1
2 1 0
POINT_DATA 2
SCALARS radius float
LOOKUP_TABLE colors
1.66 1.66
LOOKUP_TABLE colors 2
1.0 1.0 0.0 1.0
1.0 1.0 0.0 1.0
HTH.
--
http://scipy.org/FredericPetit
More information about the ParaView
mailing list