From 39e2b0cfc3e05923ec30eca65bf89893c34cd2b1 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 26 Apr 2020 17:56:20 +0200 Subject: [PATCH] =?UTF-8?q?Split=20all=20arcs=20>=20100=C2=B0=20into=20sma?= =?UTF-8?q?ller=20pieces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is necessary to make the approximation with Bezier curves work --- boxes/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index 46668f6..934454a 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -678,7 +678,8 @@ class Boxes: self.corner(lang/2., radius) return - if radius > 0.5* self.thickness and abs(degrees) > 36: + if ((radius > 0.5* self.burn and abs(degrees) > 36) or + (abs(degrees) > 100)): steps = int(abs(degrees)/ 36.) + 1 for i in range(steps): self.corner(float(degrees)/steps, radius)