From 25551ef8b11d0f8a1ac1d6edb9324e1dd7e3ebfa Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 17 Jan 2023 20:53:18 +0100 Subject: [PATCH] CrossingFingerHoleEdge: Add outset parameter --- boxes/edges.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/boxes/edges.py b/boxes/edges.py index 84a3229..f55f81d 100644 --- a/boxes/edges.py +++ b/boxes/edges.py @@ -1107,16 +1107,19 @@ class CrossingFingerHoleEdge(Edge): description = "Edge (orthogonal Finger Joint Holes)" char = '|' - def __init__(self, boxes, height, fingerHoles=None, **kw) -> None: + def __init__(self, boxes, height, fingerHoles=None, outset=0.0, **kw) -> None: super().__init__(boxes, None, **kw) self.fingerHoles = fingerHoles or boxes.fingerHolesAt self.height = height + self.outset = outset def __call__(self, length, **kw): - self.fingerHoles(length / 2.0, self.burn, self.height) + self.fingerHoles(length / 2.0, self.outset+self.burn, self.height) super().__call__(length) + def startwidth(self): + return self.outset ############################################################################# #### Stackable Joints