python, vtk, C++

Fernando Perez fperez528 at yahoo.com
Wed Oct 1 14:17:19 EDT 2003


David Abrahams wrote:

> jjl at pobox.com (John J. Lee) writes:
> 
>> "Yi-Yu Chou" <chouyiyu at hotmail.com> writes:
>>
>>> I want to use python as my GUI to load a 3D volume (vtkImageData),
>>> and use a pointer to pass this 3D image to my own C++ class.
>>> My question is I don't know how to communicate between python and C++.
>>> Any suggestion would be appreciated.
>>
>> Google.
> 
> I think I can be a little more helpful than that:
> 
> http://www.boost.org/libs/python
> http://www.swig.org

And even further:  google('mayavi python')  (this wouldn't be obvious if you
didn't know about mayavi).  There's a solid chance Mayavi will solve the OP's
problem without writing one line of code.  The most recent version includes
volume rendering right out of the box.  If he wants to code, mayavi can also
be scripted, and a tool called ivtk is included for interactive manipulation
of vtk objects.

Cheers,

f.




More information about the Python-list mailing list