Hi Hal,
Thanks for your reply. What I want to do is: 1. Read or generate one source (Box, Sphere, or other PolyData) 2. Copying it repeatedly (hundreds of copies, along both x and y axes) So far I wrote a VTK file including all sources, but now I want to to change the numbers, sizes and pitches on ParaView. Magician On 2012/08/12, at 1:00, [email protected] wrote: > Message: 4 > Date: Sat, 11 Aug 2012 11:05:05 -0400 > From: Hal Canary <[email protected]> > Subject: Re: [Paraview] Copy sources repeatedly with Programmable > Filter > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > 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. _______________________________________________ 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://www.paraview.org/mailman/listinfo/paraview
