[Paraview] Apply isovolume filter using Python
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Tue Mar 8 13:41:49 EST 2016
On Tue, Mar 8, 2016 at 1:24 PM, Arshpreet Singh <arsh840 at gmail.com> wrote:
> 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()?
IsoVolume(Input=reader, ThresholdRange=[0.25, 0.75])
More information about the ParaView
mailing list