[vtkusers] unstructured grids color attributes
Jean M. Favre
jfavre at cscs.ch
Fri Nov 11 03:14:14 EST 2005
Paolo Bertolo wrote:
> I've tried in different ways to pass Paraview CELL color attributes,
> but none of them seems to work when I load data into Paraview (2.0-
>>2.4, Windows Linux Mac).
> COLOR_SCALARS colors 4
> 1.0 0.0 0.0 1.0
> 0.0 1.0 0.0 1.0
> 0.0 0.0 1.0 1.0
> 1.0 1.0 0.0 1.0
> 0.0 1.0 1.0 1.0
> 1.0 0.0 1.0 1.0
You can get it to work in ParaView by dropping out the 4th component
(4th column of your "colors" array, i.e.
COLOR_SCALARS colors 3
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
1.0 1.0 0.0
0.0 1.0 1.0
1.0 0.0 1.0
--
Dr. Jean M. Favre, email:favre @ cscs.ch
http://www.cscs.ch/about/Favre.php
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.40
Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
More information about the vtkusers
mailing list