Split all arcs > 100° into smaller pieces

This is necessary to make the approximation with Bezier curves work
This commit is contained in:
Florian Festi 2020-04-26 17:56:20 +02:00
parent 3c94b4bf76
commit 39e2b0cfc3
1 changed files with 2 additions and 1 deletions

View File

@ -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)