[vtkusers] downcasting in python wrappers in VTK 4.2.2

Brad King brad.king at kitware.com
Tue Jul 1 08:27:26 EDT 2003


Justin,

> Now, under Linux:
[snip]
> Notice: the object type of the GetOutput() is a generic DataSet, and the
> output from the GetPointData() is a completely useless vtkObject.

Try adding these lines at the top of your python script on UNIX platforms:

import sys
import dl
sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)

Please let me know whether or not it helps.

Thanks,
-Brad




More information about the vtkusers mailing list