[Paraview] Extracting data from a point by point ID

Bruce Jones bruce.david.jones at gmail.com
Wed Nov 6 10:21:29 EST 2013


Hi,

I would like to use the python shell to get the data for a single point
from a data set. I have point data which is imported as a Polygonal Mesh.

I can use the following to get a handle to an array,

data = GetActiveSource()
pointdata = data.PointData()
pressure_array = pointdata.GetArray('Pressure')

However at this point I can't extract the value for a given point index,
I've tried,

pressure_array.GetValue(17)
pressure_array.GetPointData(17)

Where 17 is a point index. both these functions just give me an error. Can
anyone help with this?

Cheers,
Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131106/6e9d12fd/attachment.htm>


More information about the ParaView mailing list