I've posted my question on the forum and Ayman advice me to make a bug report so I could get some help with my problem.
In attach I send my code, Cmakelist, and all the .vtp files and respective .obj files that I'm using.
For now, what we visualize in the GUI is just a leg and two parts of an orthosis, that are not in the right position or with the right features (inertia, mass, etc). I was just trying to visualize them and assign the respective meshes and then I will add them to my model.
So the code is simply a test and in this code, for now, I was just trying to assign the leg mesh (leg.obj).
My problem with all the three meshes is that everytime I try to create a 'contactmesh' with one of this three I receive an error saying 'Unknown exception' and I cannot create my .osim model.
Can anyone help me on this?