[Paraview] Python Programmable Filter

Jacques Papper jacques.papper at gmail.com
Thu Nov 13 08:53:28 EST 2008


Here is what I am doing at the moment.
-Load geometry 1
-Extract wing block

-Load geometry 2
-Extract wing block

Then use the resample filter with wing1 as input and wing2 as source
(this works)

The last bit is missing (that is merging the data from wing2 with the
resampled data)

Jacques

2008/11/13 Berk Geveci <berk.geveci at kitware.com>

> Programmable filter can still be made to work. Do the datasets have
> multiple parts? I am not sure how resampling would work with multiple
> parts. It is impossible to guess which parts map to which parts...
>
> -berk
>
> On Thu, Nov 13, 2008 at 8:28 AM, Jacques Papper
> <jacques.papper at gmail.com> wrote:
> > They are multi-block datasets from Ensight Reader.
> > Is there another way of dealing with this then ?
> > Jacques
> >
> > 2008/11/13 Berk Geveci <berk.geveci at kitware.com>
> >>
> >> Are the inputs multi-block datasets by any chance?
> >>
> >>
> >> -berk
> >>
> >> On Thu, Nov 13, 2008 at 6:03 AM, Jacques Papper
> >> <jacques.papper at gmail.com> wrote:
> >> > Hi Berk,
> >> >
> >> > I am trying out your suggestion of merging arrays :
> >> >
> >> > input0 = self.GetInputDataObject(0,0)
> >> > input1 = self.GetInputDataObject(0,1)
> >> > output = self.GetOutputDataObject(0)
> >> >
> >> >
> output.GetPointData().AddArray(input0.GetPointData().GetArray("pressure1"))
> >> >
> >> >
> output.GetPointData().AddArray(input1.GetPointData().GetArray("pressure2"))
> >> >
> >> > but I get the following error message :
> >> >
> >> >   File "<string>", line 2, in <module>
> >> >   File "<string>", line 4, in RequestData
> >> > AttributeError: GetPointData
> >> >
> >> > I also tried just using the programmable filter on one source and with
> >> > the
> >> > following code, and  I get the same error :
> >> >
> >> > input0=self.GetInputDataObject(0,0)
> >> > input0.GetPointData()
> >> >
> >> > I am using version 3.4.0
> >> >
> >> > _______________________________________________
> >> > ParaView mailing list
> >> > ParaView at paraview.org
> >> > http://www.paraview.org/mailman/listinfo/paraview
> >> >
> >> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081113/a2afcf00/attachment.htm>


More information about the ParaView mailing list