[Paraview] How to color by Cell Data
Michael Jackson
mike.jackson at bluequartz.net
Sun Feb 28 09:44:50 EST 2010
Maybe it is Qt versions or ParaView versions? I am using Qt 4.6.1
compiled for Cocoa on OS X 10.5.8 Intel. I am using ParaView from <url
= git://github.com/Kitware/ParaView.git> which was last updated about
a week ago. When I get to the office on Monday I can try the same with
ParaView 3.6.2 and see if the problem persists.
As far as Data, I _could_ share it, but like Jerome stated, you can
reproduce it with a simple sphere source, then "Generate Normals". The
complete source code can be found here:
<href=http://www.bluequartz.net/cgi-bin/gitweb/gitweb.cgi?p=PVMXADataModel.git;a=blob;f=Source/Server/CrystalInterfaceColoringFilter/vtkCrystalInterfaceColoringFilter.cpp;hb=de5d94a3a128a08a534230deca9057e4e57d0358
>
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
On Feb 28, 2010, at 7:51 AM, Jérôme wrote:
> Hi,
>
> I confirm the problem: even with your script, CELL_DATA are not
> enabled.
> They don't appear in the "Color by" combo box, but the cell Ids are
> present
> in the Information panel. It works as expected when I try with
> POINT_DATA.
>
> I just had a doubt: Qt has been updated to 4.6 recently on my
> computer, and
> I don't know if my ParaView is up-to-date according to this...
>
> Let's update, compile, wait and see.
>
> Jerome
>
> 2010/2/28 Favre Jean <jfavre at cscs.ch>
>
> Hi,
> I noted this problem a few days ago.
> A *really* simple example:
> - Add a SphereSource
> - Connect to a "Generate Ids" filter
> - Update: The information panel shows a 'Ids' array for points and
> for cells, but
> the "Color by" doesn't give the choice of cell array.
>
> Jerome
> -----------------
>
> I cannot reproduce the problem. The following code works exactly as
> expected and enables the coloring by POINT_DATA or CELL_DATA
>
> sph1 = Sphere()
> genid1 = GenerateIds(Input=sph1)
> rep1 = Show(genid1)
> rep1.ColorArrayName = 'Ids'
> rep1.ColorAttributeType = 'CELL_DATA'
>
> ----------------
> Jean M. Favre
> Swiss National Supercomputing Center
More information about the ParaView
mailing list