[vtk-developers] vtkArrayExtents (and others) Python wrapping

Eric E. Monson emonson at cs.duke.edu
Mon Sep 6 20:18:22 EDT 2010


Hello,

I've been trying to see how much of the Titan text analysis functionality can be done from Python, but I ran into a problem accessing the contents of a vtkArrayExtents. The object is obtained by calling GetExtents() on a vtkArray, and if I print the array object I can see that the proper extents are there, but I can't figure out how to access them: the only methods on the vtkArrayExtents that seem to be wrapped are Append, Contains, SameShape and ZeroBased, and the object isn't iterable or scriptable. As I started trying out other things like vtkArrayRange and vtkArrayCoordinates, I also had trouble figuring out how to use them from Python.

I know David Gobbi has made a lot of great progress on the Python wrapping over the summer, and I saw his wiki example for vtkVariant, but does anyone know if these supporting classes around vtkArray work from Python right now?

Thanks a lot,
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group




More information about the vtk-developers mailing list