From b46383a089aa57cbd5fc850cdce8a1313f37d5ce Mon Sep 17 00:00:00 2001 From: Michael Kirsch Date: Sat, 25 May 2019 20:44:01 +0200 Subject: [PATCH] fix rotation matrices *facepalm no 2* --- xs/src/libslic3r/TransformationMatrix.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xs/src/libslic3r/TransformationMatrix.cpp b/xs/src/libslic3r/TransformationMatrix.cpp index 788569651..c7ff1d393 100644 --- a/xs/src/libslic3r/TransformationMatrix.cpp +++ b/xs/src/libslic3r/TransformationMatrix.cpp @@ -267,19 +267,19 @@ TransformationMatrix TransformationMatrix::mat_rotation(double angle_rad, const case X: mat = TransformationMatrix( 1.0, 0.0, 0.0, 0.0, - 0.0, c, s, 0.0, - 0.0, -s, c, 0.0); + 0.0, c, -s, 0.0, + 0.0, s, c, 0.0); break; case Y: mat = TransformationMatrix( - c, 0.0, -s, 0.0, + c, 0.0, s, 0.0, 0.0, 1.0, 0.0, 0.0, - s, 0.0, c, 0.0); + -s, 0.0, c, 0.0); break; case Z: mat = TransformationMatrix( - c, s, 0.0, 0.0, - -s, c, 0.0, 0.0, + c, -s, 0.0, 0.0, + s, c, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); break; default: