[vtkusers] swig-wrapped and vtk-wrapped Python/vtk objects - HELP!!!

Charl P. Botha c.p.botha at ewi.tudelft.nl
Fri Jan 9 04:47:37 EST 2004


On Fri, 2004-01-09 at 00:53, Yi-Yu Chou wrote:
> I am trying to pass vtk objects from python to my own c++ class using SWIG.
> However, SWIG-wrapped Python/VTK objects and native VTK-wrapped Python/VTK 
> objects seem not compatible. Has anybody thought about such things? or how 
> they might be made to work ?
> Is it better to write my own vtk objects instead of using SWIG ? or I 
> should use Python/C API ?
> Please help me !!!!!!!!

This can be made to work (you'll be on your own here, I don't like
forcing SWIG and VTK/Python to work together), but it's a far better
idea to implement your own code as VTK classes.  This way, they get
wrapped automatically by the VTK wrapping system.

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/





More information about the vtkusers mailing list