From c37d18f046bfe5d868968815235e75b17e5c6f04 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 17 May 2021 12:53:05 +0200 Subject: [PATCH] Follow-up of ca14ea4c33a0cb368e7bf4dc1576c80900882e24 -> Fixed arrange with sinking objects --- src/libslic3r/Model.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libslic3r/Model.cpp b/src/libslic3r/Model.cpp index 2a5f736458..83c03eef0e 100644 --- a/src/libslic3r/Model.cpp +++ b/src/libslic3r/Model.cpp @@ -1906,8 +1906,13 @@ arrangement::ArrangePolygon ModelInstance::get_arrange_polygon() const Vec3d rotation = get_rotation(); rotation.z() = 0.; Transform3d trafo_instance = +#if ENABLE_ALLOW_NEGATIVE_Z + Geometry::assemble_transform(get_offset().z() * Vec3d::UnitZ(), rotation, + get_scaling_factor(), get_mirror()); +#else Geometry::assemble_transform(Vec3d::Zero(), rotation, get_scaling_factor(), get_mirror()); +#endif // ENABLE_ALLOW_NEGATIVE_Z Polygon p = get_object()->convex_hull_2d(trafo_instance);