Re: [Paraview] Python scripting/Grid geometry transformation

2013-04-03 Thread Felipe Bordeu
apply a CleanToGrid filter before the python programmable filter and this is a corrected version of your script: pdi = self.GetInput() pdo = self.GetOutput() newPoints = vtk.vtkPoints() numPoints = pdi.GetNumberOfPoints() for i in range(0, numPoints): coord = pdi.GetPoint(i) x, y, z = coo

[Paraview] Python scripting/Grid geometry transformation

2013-04-02 Thread Nikolaos Beratlis
Hi, I am reading the following xmf file (attached as var3d.xmf) into Paraview: 0. 1. 2. 0. 2.0944 4.1888 6.2832 1. 2. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 The grid is a 3D orthogonal grid read in cartesian