[vtk-developers] vtkChemistry status and python bindings

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Feb 15 11:44:24 EST 2012


On Wed, Feb 15, 2012 at 11:37 AM, David Gobbi <david.gobbi at gmail.com> wrote:
> I modified vtkMoleculePython.cxx, vtkAtomPython.cxx, and
> vtkBondPython.cxx by hand to see if I could make them usable...
> the experiment succeeded.  So I know that if I modify the wrapper
> code to prefer the copy constructor over the () constructor, then
> these classes can be wrapped.

That is very encouraging.
>
> First, though, I had to modify the CMakeLists.txt to remove the
> ABSTRACT flag from the vtkAtom and vtkBond classes... Marcus,
> was it you who added that flag for these classes?  Maybe as part
> of an experiment to fool the wrappers?
>
Yes, along with my belief that the wrappers would want me to say they
were abstract as they could not call the constructor on them.

> When I call print() on a vtkAtom object from python, it goes into
> infinite recursion and crashes, but I think that's an unrelated issue.
>
I think that is an easy fix as it does more than it should.

Marcus



More information about the vtk-developers mailing list