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 =

[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: ?xml version=1.0 ? !DOCTYPE Xdmf SYSTEM Xdmf.dtd [] Xdmf Version=2.2 Domain Grid GridType=Uniform Topology TopologyType=3DRectMesh Dimensions= 2 4 3/ Geometry GeometryType=VXVYVZ DataItem Dimensions=3