diff options
author | Ghostkeeper <rubend@tutanota.com> | 2017-10-02 10:49:43 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2017-10-02 10:50:09 +0300 |
commit | 812873af15f8d896b58fbfce6d37906fba9fb67d (patch) | |
tree | 22a7ccb8065f1e55ebdf3188b03e265bd9a785b5 /cura | |
parent | 9f8691feefc77e38b6c252427be3eebca71c0c0c (diff) |
Don't expand convex hull if offset < 0
We can only do Minkowski sums now, no subtractions. So if there needs to be a subtraction, don't do anything for now. Previously it would expand with abs(hull_offset), so a negative value would cause expansion rather than contraction.
Contributes to issue #2042.
Diffstat (limited to 'cura')
-rw-r--r-- | cura/ConvexHullDecorator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/ConvexHullDecorator.py b/cura/ConvexHullDecorator.py index 8726ecb6e6..bfeb690192 100644 --- a/cura/ConvexHullDecorator.py +++ b/cura/ConvexHullDecorator.py @@ -266,7 +266,7 @@ class ConvexHullDecorator(SceneNodeDecorator): if self._getSettingProperty("mold_enabled", "value"): mold_width = self._getSettingProperty("mold_width", "value") hull_offset = horizontal_expansion + mold_width - if hull_offset != 0: + if hull_offset > 0: #TODO: Implement Minkowski subtraction for if the offset < 0. expansion_polygon = Polygon(numpy.array([ [-hull_offset, -hull_offset], [-hull_offset, hull_offset], |