[vtk-developers] vtkArrayCalculator / vtkFunctionParser

Dominik Szczerba dominik at itis.ethz.ch
Sun Jun 26 11:47:43 EDT 2011


Hi,

I have made progress. I have ported vtkPythonProgrammableFilter
completely and vtkPythonCalculator needs only hopefully minor fixes. I
attach both files along with test scripts. The first one seems to work
as expected, the second still fails. What I did:

* removed all dependencies from PV
* moved the absolutely minimum required from the PV Python Interpretor
directly to the filters. This can be beautified to taste later (e.g.
the interpretor can be ported too).
* changed the internally invoked python scripts. This is where I am
not certain if I did it right and would use some guidance. Currently
the second script produces the error:

Traceback (most recent call last):
  File "<string>", line 9, in <module>
AttributeError: PointData

which confuses me quite a bit. Changing to GetPointData produces other errors.

Looking forward to your feedback,
Dominik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 745 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110626/7da300e2/attachment-0002.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.py
Type: text/x-python
Size: 555 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110626/7da300e2/attachment-0003.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkPythonProgrammableFilter.h
Type: text/x-chdr
Size: 5517 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110626/7da300e2/attachment-0002.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkPythonProgrammableFilter.cxx
Type: text/x-c++src
Size: 13624 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110626/7da300e2/attachment-0002.cxx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkPythonCalculator.h
Type: text/x-chdr
Size: 3048 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110626/7da300e2/attachment-0003.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkPythonCalculator.cxx
Type: text/x-c++src
Size: 10810 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110626/7da300e2/attachment-0003.cxx>


More information about the vtk-developers mailing list