[vtkusers] Re: unstructured grids color attributes
Paolo Bertolo
paolo.bertolo at libero.it
Fri Nov 11 18:04:32 EST 2005
Thanks a lot for your suggestions.
Now it seems that everithing is ok.
By the way, setting the alpha channel would also be great. Is this
feature not available yet or is it a bug?
Paolo Bertolo
----
> 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
More information about the vtkusers
mailing list