mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-03 20:56:47 +08:00
fix rotation matrices *facepalm no 2*
This commit is contained in:
parent
810bff9d00
commit
b46383a089
@ -267,19 +267,19 @@ TransformationMatrix TransformationMatrix::mat_rotation(double angle_rad, const
|
|||||||
case X:
|
case X:
|
||||||
mat = TransformationMatrix(
|
mat = TransformationMatrix(
|
||||||
1.0, 0.0, 0.0, 0.0,
|
1.0, 0.0, 0.0, 0.0,
|
||||||
0.0, c, s, 0.0,
|
0.0, c, -s, 0.0,
|
||||||
0.0, -s, c, 0.0);
|
0.0, s, c, 0.0);
|
||||||
break;
|
break;
|
||||||
case Y:
|
case Y:
|
||||||
mat = TransformationMatrix(
|
mat = TransformationMatrix(
|
||||||
c, 0.0, -s, 0.0,
|
c, 0.0, s, 0.0,
|
||||||
0.0, 1.0, 0.0, 0.0,
|
0.0, 1.0, 0.0, 0.0,
|
||||||
s, 0.0, c, 0.0);
|
-s, 0.0, c, 0.0);
|
||||||
break;
|
break;
|
||||||
case Z:
|
case Z:
|
||||||
mat = TransformationMatrix(
|
mat = TransformationMatrix(
|
||||||
c, s, 0.0, 0.0,
|
c, -s, 0.0, 0.0,
|
||||||
-s, c, 0.0, 0.0,
|
s, c, 0.0, 0.0,
|
||||||
0.0, 0.0, 1.0, 0.0);
|
0.0, 0.0, 1.0, 0.0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user