mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 07:49:00 +08:00
Fixed convex hull for triangles. CURA-3314
This commit is contained in:
parent
3ca9ae145e
commit
b568ad701b
@ -197,7 +197,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||||||
|
|
||||||
hull = Polygon(vertex_data)
|
hull = Polygon(vertex_data)
|
||||||
|
|
||||||
if len(vertex_data) >= 4:
|
if len(vertex_data) >= 3:
|
||||||
convex_hull = hull.getConvexHull()
|
convex_hull = hull.getConvexHull()
|
||||||
offset_hull = self._offsetHull(convex_hull)
|
offset_hull = self._offsetHull(convex_hull)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user