[vtkusers] vtkpython, upgrade from VTK3.2 to VTK4.0

Juerg Tschirren jtschirr at engineering.uiowa.edu
Sun Dec 22 18:33:07 EST 2002


I recently upgraded from VTK 3.2 to VTK4.0 (Linux platform). I mainly use
vtkpython (Python 2.2.1) and now I get errors I didn't get under VTK 3.2.

If I write

  from vtkpython import *
  #...
  pntsPolyData = vtkPolyData()
  #...
  glyph = vtkGlyph3D()
  glyph.SetInput(pntsPolyData)

then the last step results in a "ValueError: method requires a VTK
object". If I do the same with C++ then everything works. Do I do
something wrong, or is this a new bug in the Python bindings to VTK?

Juerg





More information about the vtkusers mailing list