Split all arcs > 100° into smaller pieces
This is necessary to make the approximation with Bezier curves work
This commit is contained in:
parent
3c94b4bf76
commit
39e2b0cfc3
|
@ -678,7 +678,8 @@ class Boxes:
|
||||||
self.corner(lang/2., radius)
|
self.corner(lang/2., radius)
|
||||||
return
|
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
|
steps = int(abs(degrees)/ 36.) + 1
|
||||||
for i in range(steps):
|
for i in range(steps):
|
||||||
self.corner(float(degrees)/steps, radius)
|
self.corner(float(degrees)/steps, radius)
|
||||||
|
|
Loading…
Reference in New Issue