Developer Documentation
Vector data type used for python scripting

The matrix type Vector is mapped to python to handle Vector operations.

The integrated conversion can map the C++ Vector type to and from a tuple, a list or a numpy array. The preferred choice is the numpy array. Tuple and list have to contain 3 elements. A numpy array has to have a dimension of 1, with 3 elements.

Creating a matrix in python is the done like in the following example:

import numpy as np
vector = np.array([1.0,0.0,0.0]);

The conversion from C++ to python will always create a numpy array on the python side.