[Paraview] Extract the x,y,z extents of a domain in Paraview

Joachim Pouderoux joachim.pouderoux at kitware.com
Mon Aug 3 03:06:42 EDT 2015


Christopher,

Fetching the bounds of a source in Python is as simple as:

  >>> mySource.GetDataInformation().GetBounds()

The vtkPVDataInformation
<http://www.paraview.org/ParaQ/Doc/Nightly/html/classvtkPVDataInformation.html>
object returned by GetDataInformation() contains many other information
about the source like:
 - DataSetType
 - MemorySize
 - PolygonCount
 - NumberOfPoints
 - NumberOfCels
etc.


Regards,

*Joachim Pouderoux*

*PhD, Technical Expert*
*Kitware SAS <http://www.kitware.fr>*


2015-08-01 1:24 GMT+02:00 Neal,Christopher R <chrisneal at ufl.edu>:

> Hi all,
>
>
> I have noticed that  the max and min values of the x, y, and z coordinates
> of all of the vertices are displayed at the bottom of the 'Information' tab
> when I load a computational grid file into Paraview.  Is there a way to
> extract this information via a Python call to the Paraview library?
>
> Thank you,
>
>
> Christopher R. Neal
> Graduate Student
> Center for Compressible Multiphase Turbulence
> Mechanical and Aerospace Engineering Department
> University of Florida
> Cell: (863)-697-1958
> E-mail:  chrisneal at ufl.edu
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150803/4c820b73/attachment.html>


More information about the ParaView mailing list