[Paraview] Silhouette filter

2017-10-05 Thread Andrew
Hello.
Some time ago I used the Silhouette filter for ParaView to visualize
geometry edges (not mesh but indeed *geometry* edges). But I've missed the
file and cannot find it for download now... Would, somebody, please, share
this filter or give the download link? As some other people do, I use
ParaView 5.2 as a most recent version compatible with RDP (I don't know if
it's important for the filter compatibility).
Thanks.
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Volume average along 1-dimension

2017-10-05 Thread kenichiro yoshimi
Hi ashton,

Perhaps the python programmable filter is needed for a 1D average you
want to achieve. I have attached a state file as a similar example
that firstly generates the cross sections along the z-axis by cutting
a volume and then calculates the averages on them respectively.

I hope this will help.
Best

2017-10-06 3:15 GMT+09:00 A :
> Hi all,
>
> I have a 3D volume (xyz) with each point/cell having a corresponding value
> (velocity; this is a model of the crust and seismic velocity).
>
> I want to calculate a 1D average velocity profile along the z-axis (so at
> every depth average all the x-y velocity values).
>
> Any idea?
>
> Thanks!
>
> ashton
>
> p.s. point data or cell data solutions would work
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>


1D_Averaging.tar.gz
Description: GNU Zip compressed data
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Creating clips for multiple data sets

2017-10-05 Thread Lev Karatun
Hi,

I'm trying to apply 5 clips to a number of different data sets. I tried
selecting them, right-clicking, pressing Copy, then selecting a different
data set and pressing Paste, but nothing happens. Am I doing something
wrong?

I then tried to record a trace and modify it, but I couldn't figure out how
to create a clip for the currently selected dataset. I see that I need to
specify the clip input like this:

> clip = Clip(Input=)

but I would like to create a clip for the currently selected dataset,
without hard-coding its name in the script. Is it possible to do so?

Sorry about the beginner questions, I didn't find the answers in the
manual.
Thanks in advance!

Best regards,
Lev Karatun.
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Clearing a selection created in python

2017-10-05 Thread Felipe Bordeu
Thank you!


Le 5 oct. 2017 20:56, "Cory Quammen"  a écrit :

> Felipe,
>
> I can confirm this behavior, and I have filed a bug report here:
>
> https://gitlab.kitware.com/paraview/paraview/issues/17749
>
> Thanks,
> Cory
>
> On Thu, Sep 14, 2017 at 4:06 AM, Felipe Bordeu 
> wrote:
>
>> Hi, I'm trying to create a selection using python, but I have a little
>> question
>>
>> I use this script (as a macro)
>>
>> source = GetActiveSource()
>> activeView = GetActiveView()
>> props = GetDisplayProperties(source,view=activeView)
>> fieldtype, arrayname = props.ColorArrayName
>> a = paraview.simple._select(fieldtype[0:-1], arrayname,source)
>> Render()
>>
>> this will highlight all the entities (points or cells) with values
>> different form zero in the current view (this work great)
>>
>> the only problem is that the clear selection icon ("garbage icon") is
>> disable and the only way to clear the selection is to create a new
>> selection (using the mouse) and the clear it using the button.
>>
>> Any ideas.
>> thanks
>>
>> Felipe
>>
>>
>>
>> ___
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
>
> --
> Cory Quammen
> Staff R&D Engineer
> Kitware, Inc.
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Clearing a selection created in python

2017-10-05 Thread Cory Quammen
Felipe,

I can confirm this behavior, and I have filed a bug report here:

https://gitlab.kitware.com/paraview/paraview/issues/17749

Thanks,
Cory

On Thu, Sep 14, 2017 at 4:06 AM, Felipe Bordeu 
wrote:

> Hi, I'm trying to create a selection using python, but I have a little
> question
>
> I use this script (as a macro)
>
> source = GetActiveSource()
> activeView = GetActiveView()
> props = GetDisplayProperties(source,view=activeView)
> fieldtype, arrayname = props.ColorArrayName
> a = paraview.simple._select(fieldtype[0:-1], arrayname,source)
> Render()
>
> this will highlight all the entities (points or cells) with values
> different form zero in the current view (this work great)
>
> the only problem is that the clear selection icon ("garbage icon") is
> disable and the only way to clear the selection is to create a new
> selection (using the mouse) and the clear it using the button.
>
> Any ideas.
> thanks
>
> Felipe
>
>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>


-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXT] Re: Details of XML filter with lists of input arrays

2017-10-05 Thread Dennis Conklin
Utkarsh,

Thanks for that information - I have figured it out now.   A few notes for 
others who are or will in the future follow this subject:

The object of this exercise is to write a Programmable Filter that will put up 
a list of your Cell or Point variables and allow the user to select which ones 
to process at runtime.   Say you wrote a Volume-Average filter which calculates 
volume-averaged values of variables.   Now you can let your user select which 
variables to average at runtime- this could be helpful in a number of scenarios.

1.  You need to include at least one property in your .py file, otherwise the 
translator is unhappy - you can delete it from your .xml file, though, if you 
don't really want it (I did!)

2.  Make a pretty standard xml plugin .py file and run it through the 
python_filter_generator to turn your python into an xml plugin

3.  The python_filter_generator knows nothing about the variable arrays so it 
is strictly a manual mod to the .xml file.   In order to illustrate this, I 
have included both the .xml originally produced by the python_filter_generator 
(test.xml.orig), and the hand edited version where I implemented the Cell 
variable list and deleted the property which I included only to make the 
translator happy (test.xml).  You can tkdiff these to see exactly what changes 
were made

3.  The original python_filter_generator had a typo of vtkMultiblockDataSet, 
while this newest revision correctly has vtkMultiBlockDataSet - use the one in 
your .py file that matches the version of the generator you are using

I have run this test filter on can2.exo,  a good, simple multi-block dataset 
that is available to everyone.  Screenshots attached

Hopefully this will help the next guy.
Dennis

-Original Message-
From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] 
Sent: Thursday, October 05, 2017 11:59 AM
To: Dennis Conklin 
Cc: Paraview (paraview@paraview.org) 
Subject: Re: [EXT] Re: [Paraview] Details of XML filter with lists of input 
arrays

Dennis,

Here's a example. You need manually modify the XML generated using [1]. I've 
attached script.xml with my modifications to add a new property for "Arrays".
Also attached a state file that demos this filter (load state after lading the 
script.xml as plugin).

Hope that helps.
Utkarsh

[1]  `python python_filter_generator.py script.py script.xml`



On Wed, Oct 4, 2017 at 10:11 AM, Utkarsh Ayachit  
wrote:
> Dennis,
>
> Oops sorry, it slipped my mind you were doing this for programmable 
> filter. It should be doable, but I'll need to dig -- don't remember of 
> the top of my head. I'll put it on my plate to put together a small 
> example for you.
>
> Utkarsh
>
> On Wed, Oct 4, 2017 at 7:59 AM, Dennis Conklin 
>  wrote:
>> Utkarsh,
>>
>> I think you have me confused with a real programmer!   ;- )
>>
>> I am just trying to write a Programmable Filter in python and I'm lost.
>>
>> I want to write an xml plugin that will put up a list of all the cell 
>> variables and let the user select from then and then have the names of those 
>> variables available in my python script within the Programmable Filter.
>> I'm hoping this can be similar to plugins I have written with hardcoded 
>> variable names where I've used something like:
>>
>> Properties = dict(
>>   Sector_Angle = True)
>>
>>
>> def RequestData():
>>
>>
>>def process_block(block):
>>   #
>>   #
>>   if (Sector_Angle):
>>
>> Maybe this isn't possible at this low level, but how would I put up the list 
>> and then what would I have in my RequestData script that I could branch on.
>>
>> Thanks for your patience.
>>
>> Dennis
>>
>>
>> -Original Message-
>> From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
>> Sent: Tuesday, October 03, 2017 4:07 PM
>> To: Dennis Conklin 
>> Cc: Paraview (paraview@paraview.org) 
>> Subject: Re: [EXT] Re: [Paraview] Details of XML filter with lists of 
>> input arrays
>>
>>> So, after the user chooses some variables, are the chosen variable names in 
>>> "input_array"?
>>> Or does "input_array"  contain True or False based on which he chose, in 
>>> which case where are the corresponding names of the variables?
>>
>> When user selects variables, he's doing it on the "VolumeArrays"
>> property. Thus the selection is provided to the VTK filter via calling the 
>> command specified on the "VolumeArrays" property. In the case of the 
>> ExtractCTHParts files, this is done via `AddVolumeArrayName` and 
>> `RemoveVolumeArrayNames` API.


test.py
Description: test.py


test.xml
Description: test.xml


test.xml.orig
Description: test.xml.orig
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subsc

[Paraview] Volume average along 1-dimension

2017-10-05 Thread A
Hi all,

I have a 3D volume (xyz) with each point/cell having a corresponding value
(velocity; this is a model of the crust and seismic velocity).

I want to calculate a 1D average velocity profile along the z-axis (so at
every depth average all the x-y velocity values).

Any idea?

Thanks!

ashton

p.s. point data or cell data solutions would work
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview