[Paraview] Copy sources repeatedly with Programmable Filter
Magician
f_magician at mac.com
Sat Aug 11 09:16:36 EDT 2012
Hi all,
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?
Magician
More information about the ParaView
mailing list