[vtkusers] passing vtkDataArray to python/Numeric arrays

Bryan Cole bryan.cole at teraview.com
Fri Oct 8 05:40:13 EDT 2004


Is there an efficient way to pass the data from a vtkDataArray object to
a python Numeric array (for easier manipulation)?

I can do the reverse using vtkDataArray::SetVoidArray, but
vtkDataArray::GetVoidArray doesn't return anything useful to python.

Note. I need to do this for general vtkDataArrays, so the
vtkImageExportToArray python class doesn help (as it only handles
vtkImageData).

Bryan





More information about the vtkusers mailing list