Document parameters of _offsetHull

Makes it clear that the input is a Polygon instance, not a Numpy array.

Contributes to issue CURA-2407.
This commit is contained in:
Ghostkeeper 2016-09-29 09:32:43 +02:00
parent b0c20eafbd
commit f435dcd896
No known key found for this signature in database
GPG Key ID: 701948C5954A7385

View File

@ -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([