mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
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:
parent
b0c20eafbd
commit
f435dcd896
1 changed files with 4 additions and 0 deletions
|
@ -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([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue