[Paraview] Apply isovolume filter using Python

Arshpreet Singh arsh840 at gmail.com
Tue Mar 8 13:24:43 EST 2016


On Mon, Mar 7, 2016 at 7:19 PM, Utkarsh Ayachit
<utkarsh.ayachit at kitware.com> wrote:
> You're using a mix of advanced & simple API which is causing this
> issue. Change your code as follows:
>
> <code>
>
> from paraview.simple import Show,Render
> from paraview.simple import OpenDataFile
> from paraview.simple import IsoVolume
>
> reader = OpenDataFile("/home/metal-machine/Desktop/11.vts")
> IsoVolume(reader,'0.25','0.75')
>
> </code>

Other thing I just found that following piece of code without
threshold works fine but I have to manually change the values from the
interface. I am using Paraview version 5

<code>

from paraview.simple import Show,Render
from paraview.simple import OpenDataFile
from paraview.simple import IsoVolume

reader = OpenDataFile("/home/metal-machine/Desktop/11.vts")
IsoVolume(reader)

</code>

Is there any other way to pass min and maximum threshold values to IsoVolume()?

-- 

Thanks
Arshpreet Singh

I am Sikh boy, Learning by doing and Learning by teaching is my religion.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


More information about the ParaView mailing list