mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:45:55 +08:00
Don't always offset with 0.5mm
This is no longer needed, since before this happens we would already get an error with calculating the 3D model. Perhaps we should introduce a minkowski offset there but performing Minkowski on a 3D model is fairly expensive.
This commit is contained in:
parent
c06ffe6cae
commit
0abf455084
@ -253,14 +253,11 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||||||
|
|
||||||
## Offset the convex hull with settings that influence the collision area.
|
## Offset the convex hull with settings that influence the collision area.
|
||||||
#
|
#
|
||||||
# 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.
|
# \param convex_hull Polygon of the original convex hull.
|
||||||
# \return New Polygon instance that is offset with everything that
|
# \return New Polygon instance that is offset with everything that
|
||||||
# influences the collision area.
|
# influences the collision area.
|
||||||
def _offsetHull(self, convex_hull):
|
def _offsetHull(self, convex_hull):
|
||||||
horizontal_expansion = max(0.5, self._getSettingProperty("xy_offset", "value"))
|
horizontal_expansion = self._getSettingProperty("xy_offset", "value")
|
||||||
expansion_polygon = Polygon(numpy.array([
|
expansion_polygon = Polygon(numpy.array([
|
||||||
[-horizontal_expansion, -horizontal_expansion],
|
[-horizontal_expansion, -horizontal_expansion],
|
||||||
[-horizontal_expansion, horizontal_expansion],
|
[-horizontal_expansion, horizontal_expansion],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user