As you can see, inside my struct, when querying for the position, the
output type is not as simple as a tuple, and I sadly cannot set the
position (nor the other attributes) with tuples, the type inside my
struct becomes way more complicated to get and set (thankfully, a cast
like `tuple(v.position)` converts the type to tuple instantly). This
problem seems limited to types inside a struct as I return
std::array<float, 3> in other parts of my code and gets converted as
tuple in the python code right away, no tricks needed. I already thought
about changing C++ attributes to C++ accessors (like getPosition(),
getNormal() etc…) but I’d like to be sure there is no other option
before changing my code.
could anyone tell me if there is a way to make SWIG consider these
array<float, N> as tuples inside when getting/setting the struct
attributes ? Or a workaround ?
I wonder if I’m asking too much to SWIG, but any suggestion is welcome.