Skip to content

Commit

Permalink
individual scales should determined along rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Oekn5w authored and lordofhyphens committed Dec 2, 2019
1 parent bf4223a commit 89929de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xs/src/libslic3r/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 89929de

Please sign in to comment.