Closed SuperUserNameMan closed 2 weeks ago
Hi,
This PR adds support for a new --meshrot argument.
--meshrot
Example to rotate the converted mesh by -90 degrees around the X axis :
./iqm --meshrot -90.0 X mesh.iqm mesh.iqe
It also accepts lowercase axis name :
./iqm --meshrot 90 y mesh.iqm mesh.iqe
Note that given the fact that only the first character of the axis name is checked, it is also possible to write that way for more clarity:
./iqm --meshrot -90.0 X_axis mesh.iqm mesh.iqe
./iqm --meshrot 45 z-axis mesh.iqm mesh.iqe
This was slightly more involved, so I went ahead and did the modifications myself. Instead of supplying an axis, it just takes the triplet of Euler angles, but the functionality should be the same.
Hi,
This PR adds support for a new
--meshrot
argument.Example to rotate the converted mesh by -90 degrees around the X axis :
./iqm --meshrot -90.0 X mesh.iqm mesh.iqe
It also accepts lowercase axis name :
./iqm --meshrot 90 y mesh.iqm mesh.iqe
Note that given the fact that only the first character of the axis name is checked, it is also possible to write that way for more clarity:
./iqm --meshrot -90.0 X_axis mesh.iqm mesh.iqe
./iqm --meshrot 45 z-axis mesh.iqm mesh.iqe