Follow-up of ca14ea4c33
-> Fixed arrange with sinking objects
This commit is contained in:
parent
4aab49f591
commit
c37d18f046
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue