zanoni-mbdyn / blendyn

MBDyn (https://www.mbdyn.org/) graphical post-processor for blender (https://www.blender.org/)
GNU General Public License v2.0
40 stars 8 forks source link

fixing interpretation of mathutils::Euler #38

Closed louisgag closed 4 years ago

louisgag commented 4 years ago

It is my understanding that the mathutils::Euler function expects the angles to be given in the same order as the string (ie: XYZ, ZYX, etc) which follows it. The later should, however, be in the "intuitive" order (instead of reversed). I have not tempered with two other files that are likely to have the same issue and they are: ./baselib.py, line 1015 ./eigenlib.py, line 209 It might be worth giving a look into them as well... I tested with both euler123 and euler321 for both nodes and reference frames and it seems to hold.

zanoni-mbdyn commented 4 years ago

Thank you @louisgag. Will merge and fix the rest.