I have compiled SOFA and SofaPython3 plugni in debug mode. In this scenario, I try to assign a numpy vector to the rest position of a mechanical object, but it fails. This is the python code I am executing:
[ERROR] [vector] in vector<Vec<1, double>> 5555571952d0 size 0 : invalid index 0
I understand my MO has no size when created and therefore, assigning a numpy vector to the rest position triggers the error. How should I do this correctly? I have tried calling xN_mo.size = 3 but that also fails.