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
_______________________________________________
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to