[vtkusers] LOOKUP_TABLE: Please help

COPPO Nicolas nicolas.coppo at unine.ch
Wed Nov 15 08:55:31 EST 2006


Hello,

Please, how to attribute personalized colours to each cube of this structure.

With the CELL_DATA command.

 

Thanks a lot!

Nicolas

 

# vtk DataFile Version 2.0    

Sample rectilinear grid\n     

ASCII                         

DATASET RECTILINEAR_GRID      

DIMENSIONS 3 3 3

 

X_COORDINATES 3 float

-1 0 1

Y_COORDINATES 3 float

-1 0 1

Z_COORDINATES 3 float

-1 0 1

 

CELL_DATA 8

SCALARS cell_scalars float

LOOKUP_TABLE colors

1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0

LOOPUK_TABLE colors 8

1.0 0.0 0.0 0.5

1.0 0.0 0.0 0.5

1.0 0.0 0.0 0.5

1.0 0.0 0.0 0.5

0.0 1.0 0.0 0.5

0.0 1.0 0.0 0.5

0.0 1.0 0.0 0.5

0.0 0.0 1.0 0.5

 

_____________________________

 

Nicolas COPPO

PhD student - assistant

University of Neuchâtel

Institute of Geology

Geomagnetism group

11 Rue Emile Argand / CP 158

2009 NEUCHATEL

Switzerland

 

Phone:  00 41 (0)32 718 26 72

Mobile: 00 41 (0)79 703 97 81

Fax:      00 41 (0)32 715 26 01

E-mail: nicolas.coppo at unine.ch <mailto:nicolas.coppo at unine.ch> 

 

Co-Président ACME-Suisse

http://www.acme-suisse.ch/ <http://www.acme-suisse.ch/> 

____________________________

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061115/82848d05/attachment.htm>


More information about the vtkusers mailing list