Hi,
I’ve been using a python script to post-process and visualise large structured
grid files. It works great but the grids I am visualising are of different
dimensions (let say either 512x128x512, or 1024x256x1024).
In the script pipeline - see snippet below - I extract a subset (top cell
Guillaume,
Use data information [1] as follows:
UpdatePIpeline(inputPvts)
extent = inputPvts.GetDataInformation().GetExtent()
See Section 3.3 from the ParView Guide[2] for more details.
Utkarsh
[1]
http://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/classvtkPVDataInformation.html
Thanks a lot Utkarsh for your assistance!
I've added the following to my python script, and it worked smoothly:
inputPvts.UpdatePipeline()
extent = inputPvts.GetDataInformation().GetExtent()
print extent
returns:
(0, 512, 0, 128, 0, 512)
Cheers
Guillaume
On 26 May 2015, at