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 =
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