From 197600d452da7241da46bfd1f232e80c5f658a3c Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 25 Sep 2018 09:21:38 +0200 Subject: [PATCH] Test.pm modified to use ModelInstance full 3D transform --- lib/Slic3r/Test.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Test.pm b/lib/Slic3r/Test.pm index c0137f9e4..b767ca593 100644 --- a/lib/Slic3r/Test.pm +++ b/lib/Slic3r/Test.pm @@ -158,8 +158,12 @@ sub model { $object->add_volume(mesh => $mesh, material_id => $model_name); $object->add_instance( offset => Slic3r::Pointf->new(0,0), - rotation => $params{rotation} // 0, - scaling_factor => $params{scale} // 1, + # 3D full transform + rotation => Slic3r::Pointf3->new(0, 0, $params{rotation} // 0), + scaling_factor => Slic3r::Pointf3->new($params{scale} // 1, $params{scale} // 1, $params{scale} // 1), + # old transform +# rotation => $params{rotation} // 0, +# scaling_factor => $params{scale} // 1, ); return $model; }