[Paraview] best way to extract coordinates of selected point using python
Fabian Braennstroem
f.braennstroem at gmx.de
Thu May 19 13:40:36 EDT 2011
Hi Aurelien,
thanks I will try it...
Best Regards!
Fabian
On 05/18/2011 09:24 AM, Aurélien Marsan wrote:
> No, don't recompile Paraview.
> In the worst case, you simply want to install python 2.7 (same as
> Paraview) on your computer, add the numpy library, and set your
> PYTHONPATH to this new numpy directory.
>
> I check if the numpy import works well with the binary package on a
> 64-bits linux, I will let you know.
> For now, I'm on a windows machine.
>
> Regards,
>
> Aurélien
>
> Le 17 mai 2011 16:14, Fabian Braennstroem <f.braennstroem at gmx.de
> <mailto:f.braennstroem at gmx.de>> a écrit :
>
> 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>
> <mailto: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