From 61def4ba255840cb32f17cc3d2297bcb074358d3 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 19 Jun 2020 16:59:27 +0200 Subject: [PATCH] Prevent crash when requested polygon is too large CURA-6P --- cura/Arranging/Arrange.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cura/Arranging/Arrange.py b/cura/Arranging/Arrange.py index 4333cbd74a..c9d3498c7b 100644 --- a/cura/Arranging/Arrange.py +++ b/cura/Arranging/Arrange.py @@ -80,8 +80,11 @@ class Arrange: # After scaling (like up to 0.1 mm) the node might not have points if not points.size: continue - - shape_arr = ShapeArray.fromPolygon(points, scale = scale) + try: + shape_arr = ShapeArray.fromPolygon(points, scale = scale) + except ValueError: + Logger.logException("w", "Unable to create polygon") + continue arranger.place(0, 0, shape_arr) # If a build volume was set, add the disallowed areas