[Paraview] ExtractSubset not working well in pvpython

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Nov 3 10:00:40 EST 2014


Hi,

I wonder if the problem is with Fetch(). What does the following yeild?

ExtractSubset0.UpdatePipeline()
print ExtractSubset0.GetDataInformation().GetNumberOfPoints()

Utkarsh

On Thu, Oct 30, 2014 at 5:29 PM, Chukwudi Chukwudozie
<cchukw1 at tigers.lsu.edu> wrote:
> Hi,
>
> I have a structured grid computational domain of size 800,2,800. I want to
> extract the information along a line and so I do the following in my python
> script.
>
> ExtractSubset0 =
> ExtractSubset(guiName="ExtractSubset0",IncludeBoundary=0,VOI=[399, 399, 0,
> 0, 0, 799], SampleRateK=1, SampleRateJ=1, SampleRateI=1)
> data = servermanager.Fetch(ExtractSubset0)
> numPoints=data.GetNumberOfPoints()
>
> However, when I plot the information on that line, I see it has only
> extracted information between 0-399 in the z-coordinate direction. I even
> printed numPoints to confirm how much information is extracted and I get
> "numPoints=400". I am using PV 3.98.0.
>
> Any help on this will be appreciated.
>
>
>
>
> --
> Chukwudi Chukwudozie
> cchukw1 at tigers.lsu.edu
> Craft and Hawkins Department of Petroleum Engineering
> Louisiana State University
> Patrick F. Taylor Hall (CEBA)
> Room 3429
> Baton Rouge LA, 70803
> Cell:3373546822
> Office: 2255786064
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/paraview
>


More information about the ParaView mailing list