[Paraview] How to color by Cell Data

Michael Jackson mike.jackson at bluequartz.net
Mon Mar 1 10:41:32 EST 2010


Send me the areas to look at and I'll try to see what is happening.

--
Mike Jackson <www.bluequartz.net>

On Mar 1, 2010, at 10:33 AM, Utkarsh Ayachit wrote:

> I've tried on Os X (4.6 Cocoa),  and Linux and still cannot reproduce
> the issue. Mike, if you don't mind a little debugging, I can point you
> to the relevant code.
>
> Utkarsh
>
> On Mon, Mar 1, 2010 at 10:20 AM, Michael Jackson
> <mike.jackson at bluequartz.net> wrote:
>> Well, this is really getting weird. I have to admit that I have NOT  
>> tried it
>> on anything other than OS X with Qt/Cocoa. I am going to try with OS
>> X/Qt-Carbon (Qt 4.6.2) and see what happens. I guess I'll try  
>> Windows Next.
>>
>> --
>> Mike Jackson <www.bluequartz.net>
>>
>> On Mar 1, 2010, at 9:52 AM, Sven Buijssen wrote:
>>
>>> Hi,
>>>
>>> I tested my nightly clean builds of ParaView CVS HEAD (pulled via  
>>> git) +
>>> Qt 4.5.2 on
>>> * SuSE Linux Enterprise Server 10 SP2
>>> * Ubuntu 9.10 Server 64bit
>>> * openSuSE 10.2 64bit
>>> * openSuSE 11.1 32bit
>>> * SPARC Solaris 10 64bit (PV CVS 2010-02-25, nothing newer as I'm  
>>> having
>>> some
>>> trouble with Mesa since Dave's commit Fri Feb 26 17:57:21 2010  
>>> +0000)
>>>
>>> I see for all builds both point "Ids" and cell "Ids" in the Color  
>>> By menu.
>>>
>>> I also checked the tarballs of all nightly builds since beginning of
>>> February
>>> 2010 on openSuSE 11.1 and could not reproduce the issue. Cell Ids is
>>> always there.
>>>
>>> Sven
>>>
>>>
>>> Michael Jackson wrote, On 01.03.2010 15:47:
>>>>
>>>> Here is a screen shot. I updated to latest cvs and recompiled.  
>>>> Still no
>>>> joy. I even tried saving the data set to a new file, then loading  
>>>> the
>>>> file. No luck there either. Any other suggestions are welcome. I  
>>>> do have
>>>> the data file if you are interested.
>>>>
>>>>
>>>>
>>>>
>>>> ___________________________________________________________
>>>> Mike Jackson                      www.bluequartz.net
>>>>
>>>>
>>>> On Feb 28, 2010, at 2:01 PM, Jérôme wrote:
>>>>
>>>>> Well, I just updated my worktree with the latest CVS. The problem
>>>>> remains,
>>>>> both in debug and release. Note that Yum (package manager of  
>>>>> Fedora)
>>>>> installs qt-4.6.2.
>>>>>
>>>>> I will trace the code tomorrow monday.
>>>>>
>>>>> Jerome
>>>>>
>>>>> 2010/2/28 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
>>>>> That is weird. I am on Mac with Qt 4.6.0, Cocoa and the latest CVS
>>>>> ParaView and I see both point "Ids" and cell "Ids" in the Color By
>>>>> menu. I'll test it out with my linux box at work tomorrow.
>>>>>
>>>>> Utkarsh
>>>>>
>>>>> On Sun, Feb 28, 2010 at 9:44 AM, Michael Jackson
>>>>> <mike.jackson at bluequartz.net> wrote:
>>>>>>
>>>>>> 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
>>>>>>
>>>>>> _______________________________________________
>>>>>> Powered by www.kitware.com
>>>>>>
>>>>>> Visit other Kitware open-source projects at
>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>
>>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>>> http://paraview.org/Wiki/ParaView
>>>>>>
>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>>
>>>>> _______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>> http://paraview.org/Wiki/ParaView
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>> http://paraview.org/Wiki/ParaView
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>



More information about the ParaView mailing list