[Paraview] Python scripting question in 3.14
Tim Gallagher
tim.gallagher at gatech.edu
Mon Feb 27 14:09:37 EST 2012
Hi,
We had a programmable filter that started out like:
from paraview import vtk
input = self.GetInputDataObject(0, 0)
output = self.GetOutputDataObject(0)
ngls = 2
if input.IsA("vtkMultiBlockDataSet"):
nblk = input.GetNumberOfBlocks()
print "nblk = ", nblk
for n in range(nblk):
blk = input.GetBlock(n)
if blk is not None:
i1, i2, j1, j2, k1, k2 = blk.GetExtent()
which worked in 3.12. But trying it with the 3.14 build, the GetExtent() doesn't exist anymore. What do I do to replace it? I can't seem to find the corresponding function.
Tim
More information about the ParaView
mailing list