Fix parts.disc()
This commit is contained in:
parent
21948ade3b
commit
354063068a
|
@ -26,7 +26,7 @@ class Parts:
|
||||||
return getattr(self.boxes, name)
|
return getattr(self.boxes, name)
|
||||||
|
|
||||||
def disc(self, diameter, callback=None, move=""):
|
def disc(self, diameter, callback=None, move=""):
|
||||||
size = diameter+2*spacing
|
size = diameter+2*self.boxes.spacing
|
||||||
r = diameter/2.0
|
r = diameter/2.0
|
||||||
if self.move(size, size, move, before=True):
|
if self.move(size, size, move, before=True):
|
||||||
return
|
return
|
||||||
|
@ -36,7 +36,7 @@ class Parts:
|
||||||
self.moveTo(r+self.burn,0, 90)
|
self.moveTo(r+self.burn,0, 90)
|
||||||
self.corner(360, r)
|
self.corner(360, r)
|
||||||
self.boxes.ctx.restore()
|
self.boxes.ctx.restore()
|
||||||
self.move(size, size, move, before=True)
|
self.move(size, size, move)
|
||||||
|
|
||||||
def waivyKnob(self, diameter, n=20, angle=45, callback=None, move=""):
|
def waivyKnob(self, diameter, n=20, angle=45, callback=None, move=""):
|
||||||
size = diameter+pi*diameter/n+2*self.boxes.spacing
|
size = diameter+pi*diameter/n+2*self.boxes.spacing
|
||||||
|
|
Loading…
Reference in New Issue