[Paraview] Copy sources repeatedly with Programmable Filter

Hal Canary hal at cs.unc.edu
Sat Aug 11 11:05:05 EDT 2012


On 08/11/2012 09:16 AM, Magician wrote:
> I'm trying to copy vtkPolyData sources with Programmable Filter.
> My latest code is here:
> > input = self.GetPolyDataInput()
> > output = self.GetPolyDataOutput()
> > points = vtk.vtkPoints()
> > for i in range(0, input.GetNumberOfPoints()):
> >      point_i = input.GetPoint(i)
> >      x, y, z = point_i[:3]
> >      z = z + 2.0
> >      points.InsertPoint(i, x, y, z)
> > output.SetPoints(points)
>
> And now I want to copy them repeatedly with only one filter.
> (Ex: 10 blocks at intervals.)
> How to do it?

It sounds like you want to select all of the sources and apply the 
Append Geometry filter.



More information about the ParaView mailing list