From 89929de59998ebb28b7f3d4b0680cb736aa79a54 Mon Sep 17 00:00:00 2001 From: Michael Kirsch Date: Fri, 19 Jul 2019 21:18:31 +0200 Subject: [PATCH] individual scales should determined along rows --- xs/src/libslic3r/Model.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xs/src/libslic3r/Model.cpp b/xs/src/libslic3r/Model.cpp index 2d215f83ab..987c0cd3d7 100644 --- a/xs/src/libslic3r/Model.cpp +++ b/xs/src/libslic3r/Model.cpp @@ -1222,9 +1222,9 @@ void ModelInstance::set_complete_trafo(TransformationMatrix const & trafo) this->offset.y = trafo.m13; // Get the scale values. - double sx = sqrt( trafo.m00 * trafo.m00 + trafo.m10 * trafo.m10 + trafo.m20 * trafo.m20), - sy = sqrt( trafo.m01 * trafo.m01 + trafo.m11 * trafo.m11 + trafo.m21 * trafo.m21), - sz = sqrt( trafo.m02 * trafo.m02 + trafo.m12 * trafo.m12 + trafo.m22 * trafo.m22); + double sx = sqrt( trafo.m00 * trafo.m00 + trafo.m01 * trafo.m01 + trafo.m02 * trafo.m02), + sy = sqrt( trafo.m10 * trafo.m10 + trafo.m11 * trafo.m11 + trafo.m12 * trafo.m12), + sz = sqrt( trafo.m20 * trafo.m20 + trafo.m21 * trafo.m21 + trafo.m22 * trafo.m22); this->scaling_factor = (sx + sy + sz) / 3;