[Paraview] best way to extract coordinates of selected point using python
Fabian Braennstroem
f.braennstroem at gmx.de
Tue May 17 10:14:34 EDT 2011
Thanks, ... by testing it I have some error messages with the
programmable filter for the 3.10.1 binary 64bit version on linux:
Traceback (most recent call last):
File "<string>", line 10, in <module>
File
"/home/gcae504/Desktop/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/__init__.py",
line 136, in <module>
import add_newdocs
File
"/home/gcae504/Desktop/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/add_newdocs.py",
line 9, in <module>
from numpy.lib import add_newdoc
File
"/home/gcae504/Desktop/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/lib/__init__.py",
line 13, in <module>
from polynomial import *
File
"/home/gcae504/Desktop/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/lib/polynomial.py",
line 11, in <module>
import numpy.core.numeric as NX
AttributeError: 'module' object has no attribute 'core'
It seems to me, that the numpy module is not complete!? Or do I need to
recompile paraview to get the filter working correctly!?
Best Regards!
Fabian
On 05/17/2011 02:23 PM, Aurélien Marsan wrote:
> And for the coordinates :
> print inputs[0].Points
>
> Le 17 mai 2011 14:22, Aurélien Marsan <aur.marsan at gmail.com
> <mailto:aur.marsan at gmail.com>> a écrit :
>
> In the programmable filter, if the input is something else than a
> vtkMultiBlockDataSet
> print inputs[0].PointData['ro']
> in order to see the 'ro' value at the point.
>
>
More information about the ParaView
mailing list