Hi,
I’m using Paraview Catalyst 5.8.0 on Linux
I’m trying to get the center of my data set using the following in my Pipeline()
bnds = datasource.GetDataInformation().DataInformation.GetBounds()
print('bnds :'+str(bnds[0])+', '+str(bnds[1])+', '+str(bnds[2]) +', '+str(bnds[3]) +', '+str(bnds[4]) +', '+str(bnds[5]) )
With the same input data I get the following as an example:
bnds :0.0, 100.0, 0.0, 50.0, 1249.1666259765625, 1666.6666259765625
bnds :0.0, 100.0, 0.0, 50.0, 415.8333435058594, 833.3333129882812
bnds :0.0, 100.0, 0.0, 50.0, 0.0, 416.6666564941406
bnds :0.0, 100.0, 0.0, 50.0, 832.5, 1250.0
bnds :0.0, 100.0, 0.0, 50.0, 0.0, 1666.6666259765625
bnds :0.0, 100.0, 0.0, 50.0, 833.3333129882812, 1666.6666259765625
bnds :0.0, 100.0, 0.0, 50.0, 0.0, 833.3333129882812
bnds :0.0, 100.0, 0.0, 50.0, 0.0, 833.3333129882812
bnds :0.0, 100.0, 0.0, 50.0, 833.3333129882812, 1666.6666259765625
bnds :0.0, 100.0, 0.0, 50.0, 833.3333129882812, 1666.6666259765625
So, there is some kind of pattern, but not correct as I know the data set has bounds in the Z direction of 0 - 2000.
I am doing something a little unusual as I collect all sections of the dataset from multiple mpi ranks onto a single rank and create the VTK multi-piece data set on it. I have found that I need to do a MergeBlocks to consolidate any filtered data, however if I use a GetDataInformation().DataInformation.GetBounds() on a MergeBlocks result I do not get updated bounds information:
e.g. I get the following:
bndsmpi:1e+299, -1e+299, 1e+299, -1e+299, 1e+299, -1e+299
Is there a way to update the bounds information before trying to use it?
Thanks,
Josh