3.3 Data Transfer between (Numerical) Python and Open Inventor

The classes

have constructors which accept 1- or 2-dimensional Python data structures as arguments. The data structures can be Python lists, Python tuples or the array classes provided by the Numerical Python extensions.

Depending on which Numerical Python extensions have been installed during the build of IVuPy those classes provided methods to return the data in a Numerical Python array:

toNumpy( )
Returns a NumPy array.

toNumeric( )
Returns a Numeric array.

toNumarray( )
Returns a numarray array.

Note: The unit tests in Tests/test_to_numerical.py show how to transfer data between Open Inventor and Numerical Python.

The classes

have constructors which accept 1-dimensional Python sequences as arguments. The sequences (with a length of 2, 3, or 4) can be Python lists, Python tuples or the array classes provided by the Numerical Python extensions.

Those classes also have a method setValue() taking the same sequences as argument.