[vtkusers] python wrap of stand alone vtk lib

Dean Inglis dean.inglis at camris.ca
Mon Mar 15 14:48:13 EDT 2010


Hi all,

I am somewhat new to python and am trying to do python wrapping
of a stand alone c++ library that extends vtk.  Ive seen swig in 
quite a few threads but have no idea how to set this up with
cmake and my library.  Can anyone provide a few links or
pointers to get me started?  Ultimately id like to be able to have
in a py script;

import vtk
import mykit

def someExample():
  # initialize stuff
  widget = vtkMyKitWidget()
  # use the widget

Dean



More information about the vtkusers mailing list