[vtkusers] Python bindings / initial values / BuildLinks
    Paul de Bruin 
    P.W.deBruin at its.tudelft.nl
       
    Tue Apr  8 04:49:05 EDT 2003
    
    
  
Hi All,
After an upgrade to the latest CVS of VTK the python bindings appear to
be broken. 
Short example:
#!/usr/bin/env python
from vtk import *
a=vtkPolyData()
a.BuildLinks()
which errors with: 
TypeError: function takes exactly 1 argument (0 given)
(a.BuildLinks(0) works fine btw)
The problem appears to be that the BuildLinks definition in
vtkPolyData.h changed between versions 1.123 and 1.124 from:
void BuildLinks(); 
to
void BuildLinks(int initialSize=0);
Apparently, something goes awry with the generation of python bindings
and default parameters. Of course, one can think of several workarounds,
but a permanent solution would be much appreciated.
Regards,
PdB
-- 
ir. P.W. de Bruin, Delft University of Technology
Faculty of Information Technology and Systems
http://visualisation.tudelft.nl/~paul PGP-ID:CD36D25B
    
    
More information about the vtkusers
mailing list