[vtkusers] HOW TO GET COLOR

Tugcan Tuzcu tugcan.tuzcu at gmail.com
Mon Oct 22 18:06:33 EDT 2007


Dear friends,
I defined let's say 4 spheres in same file(I use vtk-legacy)
and now I m trying to add surface properties for these spheres.
first I have to add color.
my format is like this:

# vtk DataFile Version 3.0
vtk output
ASCII
DATASET POLYDATA
POINTS n float
.
.
.
.
.
POLYGONS m p
.
.
.
CELL_DATA m
SCALARS sample_scalars float 1
LOOKUP_TABLE my_table
0.0
1.0
.
.
m.0
LOOKUP_TABLE my_table table size(# of polygons)
ro go bo ao
r1 g1 b1 a1
.
.
.
.

In this way I can not control the color values of individual spheres those I
created,
and when I change the opacity of bif sphere (say outer spheres contains 3
spheres inside) the opcaity and color values change for all
I mean when I make changing about one object all other obfect are affected.
So what should I do to get rid of this problem, or how should I describe the
color of my objecta in my format case.

thanks for helping
tugcan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071022/629ab816/attachment.htm>


More information about the vtkusers mailing list