If you are looking for the Centroid of the dataset, then I would propose 3 
lines of python in a Programmable Filter, using numpy's mean. Cut and paste in 
the script section of a PF:


from paraview.vtk.dataset_adapter import numpyTovtkDataArray

coords = inputs[0].Points

print mean(coords)

see page 85 of the ParaViewManual for other examples

http://www.paraview.org/files/v3.98/ParaViewManual.v3.98.pdf
-----------------
Jean
CSCS
_______________________________________________
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