mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 23:25:59 +08:00
Follow-up of ca14ea4c33a0cb368e7bf4dc1576c80900882e24 -> Fixed arrange with sinking objects
This commit is contained in:
parent
4aab49f591
commit
c37d18f046
@ -1906,8 +1906,13 @@ arrangement::ArrangePolygon ModelInstance::get_arrange_polygon() const
|
|||||||
Vec3d rotation = get_rotation();
|
Vec3d rotation = get_rotation();
|
||||||
rotation.z() = 0.;
|
rotation.z() = 0.;
|
||||||
Transform3d trafo_instance =
|
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,
|
Geometry::assemble_transform(Vec3d::Zero(), rotation,
|
||||||
get_scaling_factor(), get_mirror());
|
get_scaling_factor(), get_mirror());
|
||||||
|
#endif // ENABLE_ALLOW_NEGATIVE_Z
|
||||||
|
|
||||||
Polygon p = get_object()->convex_hull_2d(trafo_instance);
|
Polygon p = get_object()->convex_hull_2d(trafo_instance);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user