Also support d (diameter) param for Boxes.hole()
This commit is contained in:
parent
36c0ec48fe
commit
90078049f8
|
@ -923,7 +923,7 @@ class Boxes:
|
||||||
|
|
||||||
@restore
|
@restore
|
||||||
@holeCol
|
@holeCol
|
||||||
def hole(self, x, y, r):
|
def hole(self, x, y, r=0.0, d=0.0):
|
||||||
"""
|
"""
|
||||||
Draw a round hole
|
Draw a round hole
|
||||||
|
|
||||||
|
@ -932,6 +932,9 @@ class Boxes:
|
||||||
:param r: radius
|
:param r: radius
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if not r:
|
||||||
|
r = d / 2.0
|
||||||
r -= self.burn
|
r -= self.burn
|
||||||
if r < 0:
|
if r < 0:
|
||||||
r = 1E-9
|
r = 1E-9
|
||||||
|
|
Loading…
Reference in New Issue