mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 02:28:58 +08:00
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.
This commit is contained in:
parent
9f8691feef
commit
812873af15
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user