[Paraview] Statistics Inspector data via Python
Bill Sherman
shermanw at indiana.edu
Tue Jul 29 18:46:30 EDT 2014
Thanks Scott,
> The GetDataInformation() function can be used to meet some of your
> needs, though maybe not all:
Perfect!
> proxy = GetActiveSource()
> dataInfo = proxy.GetDataInformation()
>
> # Get some basic statistics about the data
> info = { 'bounds': dataInfo.DataInformation.GetBounds(),
> 'points': dataInfo.DataInformation.GetNumberOfPoints(),
> 'cells': dataInfo.DataInformation.GetNumberOfCells(),
> 'type': dataInfo.DataInformation.GetPrettyDataTypeString(),
> 'memory': dataInfo.DataInformation.GetMemorySize() }
>
> I'm not sure how to get the number of polygons. Perhaps there's more in
> that DataInformation reference?
GetPolygonCount()!
> Cheers,
> Scott
Thanks again,
Bill
More information about the ParaView
mailing list