[vtkusers] vtk and python for large amout of data

Berk Geveci berk.geveci at kitware.com
Thu Dec 5 14:51:07 EST 2002


> I thought that you had to convert the Numeric array to a string first, ie
>   fa.SetVoidArray(a.tostring(),5,1)

That's what vtkImageExportToArray.py did.  However, I discovered 
that, somehow, it  works without tostring() as well. Since tostring() 
seems to copy  the internal array, it's better not to use  it. I 
don't know the internals of Numeric or the wrapping enough to
guess why it works (and why it didn't probably work in the past).

-Berk





More information about the vtkusers mailing list