[vtkusers] Does anyone modify VTK wrap program to wrap other software for python?
David Gobbi
dgobbi at irus.rri.on.ca
Tue Aug 29 16:05:46 EDT 2000
On Wed, 30 Aug 2000, public.east.cn.net wrote:
> Hi,
>
> VTK has a good wrap program for python,
> Does anyone modify the wrap program
> to wrap other software?
>
> mrfx
Take a look at http://www.swig.org/, swig can more-or-less automatically
generate wrappers from C or C++ header files. Also have a look at
http://www.python.org/doc/current/ext/ext.html if you want to get an
idea of how to write wrappers by hand.
You should probably not try to modify the VTK python wrappers to wrap
other software -- most of the code in vtkParse.y, vtkParse.l, vtkParse.h
and vtkWrapPython.c is VTK-specific and wouldn't be much use elsewhere.
- David
More information about the vtkusers
mailing list