3.3 Data Transfer between (Numerical) Python and Open Inventor
have constructors which accept 1- or 2-dimensional Python data structures as
The data structures can be Python lists, Python tuples or the array classes
provided by the Numerical Python extensions.
- SoMFVec3f, and
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:
Returns a NumPy array.
Returns a Numeric array.
Returns a numarray array.
The unit tests in Tests/test_to_numerical.py show how to transfer data
between Open Inventor and Numerical Python.
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.
- SoSFVec3s, and
Those classes also have a method setValue() taking the same sequences