SofaDefrost / STLIB

Sofa Template Library
GNU Lesser General Public License v3.0
17 stars 22 forks source link

Bug numerics TRS_to_matrix function #55

Open polyakovkrylo opened 3 years ago

polyakovkrylo commented 3 years ago

When trying to launch the sofiaLeg demo provided by the ModelOrderReduction plugin, the newBox function did not work for me. I noticed that TRS_to_matrix() does not initiate the rotation quaternion when a zero rotation is given. It can be fixed by adding the following lines:

if eulerRotation != None:
      rotation = from_euler( to_radians( eulerRotation ) )
else:
      rotation = [0, 0, 0, 1]