diff options
author | Ghostkeeper <rubend@tutanota.com> | 2016-09-29 10:32:43 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2016-09-29 10:32:43 +0300 |
commit | f435dcd89603361035b80107416f05e8b95f8159 (patch) | |
tree | 21cbddf70dbd1413f700b518eb4b9baf08855220 /cura/ConvexHullDecorator.py | |
parent | b0c20eafbdcbaaf6000ef076cd269fd01ecbc387 (diff) |
Document parameters of _offsetHull
Makes it clear that the input is a Polygon instance, not a Numpy array.
Contributes to issue CURA-2407.
Diffstat (limited to 'cura/ConvexHullDecorator.py')
-rw-r--r-- | cura/ConvexHullDecorator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cura/ConvexHullDecorator.py b/cura/ConvexHullDecorator.py index 44439c24dc..67c655f53d 100644 --- a/cura/ConvexHullDecorator.py +++ b/cura/ConvexHullDecorator.py @@ -251,6 +251,10 @@ class ConvexHullDecorator(SceneNodeDecorator): # # 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")) expansion_polygon = Polygon(numpy.array([ |