On Tue, Mar 8, 2016 at 1:24 PM, Arshpreet Singh <[email protected]> wrote:
> On Mon, Mar 7, 2016 at 7:19 PM, Utkarsh Ayachit
> <[email protected]> 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])
_______________________________________________
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

Reply via email to