From f435dcd89603361035b80107416f05e8b95f8159 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 29 Sep 2016 09:32:43 +0200 Subject: [PATCH] Document parameters of _offsetHull Makes it clear that the input is a Polygon instance, not a Numpy array. Contributes to issue CURA-2407. --- cura/ConvexHullDecorator.py | 4 ++++ 1 file changed, 4 insertions(+) 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([