diff options
author | Ghostkeeper <rubend@tutanota.com> | 2017-03-07 14:41:53 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2017-03-07 14:43:20 +0300 |
commit | 0abf4550842ede93f2df11ceb7dca8a0d5c173e2 (patch) | |
tree | 49ae8f2a2208fc48c61d462c97569c814aa89485 /cura/ConvexHullDecorator.py | |
parent | c06ffe6cae5d7bf03e4e3f3bbd143c48d3015d70 (diff) |
Don't always offset with 0.5mm
This is no longer needed, since before this happens we would already get an error with calculating the 3D model. Perhaps we should introduce a minkowski offset there but performing Minkowski on a 3D model is fairly expensive.
Diffstat (limited to 'cura/ConvexHullDecorator.py')
-rw-r--r-- | cura/ConvexHullDecorator.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cura/ConvexHullDecorator.py b/cura/ConvexHullDecorator.py index 2b97feec82..0006f7ff6c 100644 --- a/cura/ConvexHullDecorator.py +++ b/cura/ConvexHullDecorator.py @@ -253,14 +253,11 @@ class ConvexHullDecorator(SceneNodeDecorator): ## Offset the convex hull with settings that influence the collision area. # - # This also applies a minimum offset of 0.5mm, because of edge cases due - # to the rounding we apply. - # # \param convex_hull Polygon of the original convex hull. # \return New Polygon instance that is offset with everything that # influences the collision area. def _offsetHull(self, convex_hull): - horizontal_expansion = max(0.5, self._getSettingProperty("xy_offset", "value")) + horizontal_expansion = self._getSettingProperty("xy_offset", "value") expansion_polygon = Polygon(numpy.array([ [-horizontal_expansion, -horizontal_expansion], [-horizontal_expansion, horizontal_expansion], |