Dear all

Is it possible to somehow inherit vtkPolyDataAlgorithm from within the python wrapper only?
Or in other words: is it possible to mimic a vtkPolyDataAlgorithm entirely within python?

I have something like the following in mind:
<pre>
from my_algo import MyAlgoObj
algo = MyAlgoObj()
algo.SetInputConnection(input.GetOutputPort())
algo.Update()
algo.GetOutput()
...
</pre>

<pre>
# my_algo.py:
import vtk

class MyAlgoObj(vtk.vtkPolyDataAlgorithm):
    def __init__(self):
        # ...
    def RequestData(...):
        # ...
</pre>

This is certainly against vtk's design objectives. But for my project, it would be the easiest if I can create an algorithm within my python module, without the need to re-build vtk and to re-distribute a forked version of vtk.

Best
Norman

        
        
        
<br/><hr align="left" width="300" />
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>