mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 05:39:37 +08: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
@ -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…
x
Reference in New Issue
Block a user