[vtkusers] Can I mix Boost.Python and VTK Python wrapper?
Андрей Траченко
goodrone at gmail.com
Wed Feb 23 06:54:41 EST 2011
I have an application in C++, which uses VTK. Now I'm exposing C++
classes to Python using Boost.Python library and using my C++ classes
within Python scripts.
Now I want to pass VTK objects between C++ and Python code. Is there
any correct way to do it? As far as I understand, vtkSmartPointer is
used as a "smart pointer" in terms of Boost.Python to wrap VTK C++
classes.
Currently I'm swapping vtkUnstructuredGrid and other stuff using
temporary files, and it's way too slow on large datasets, so I hope I
could build a "bridge" between C++ and Python for VTK.
Thanks!
Andrew
More information about the vtkusers
mailing list