From cd4949ccac07ce0209c5eaad9ec87e982bfa4b5b Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 20 Aug 2022 08:59:39 +0200 Subject: [PATCH] Only draw snap finger joint for wide fingers and use rectangular fingers if width is smaller than 1.9 --- boxes/edges.py | 2 +- documentation/src/usermanual.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/edges.py b/boxes/edges.py index 3b1f738..a9318a5 100644 --- a/boxes/edges.py +++ b/boxes/edges.py @@ -900,7 +900,7 @@ class FingerJointEdge(BaseEdge, FingerJointBase): self.polyline( 0, -90, *poly, 90, f, 90, *reversed(poly), -90 ) - elif style == "snap": + elif style == "snap" and f > 1.9 * t: a12 = math.degrees(math.atan(0.5)) l12 = t / math.cos(math.radians(a12)) d = 4*t diff --git a/documentation/src/usermanual.rst b/documentation/src/usermanual.rst index 9d2bef7..d115c9c 100644 --- a/documentation/src/usermanual.rst +++ b/documentation/src/usermanual.rst @@ -202,7 +202,7 @@ Finger Joint Settings minimal amount of space before the first and after the last finger. This is in multiples of regular space between fingers. Reduce this if there are no fingers fitting on short edges. style - how finger joints should look like. There may be more styles to choose from in the future. + how finger joints should look like. There may be more styles to choose from in the future. Note that snap fingers will only be drawn for fingers of width 1.9 and above. extra_length Make the outset part of the finger joint longer to allow grinding off burn marks. Note that this may not be great for non 90° joints where the corner is butted against the opposing cutout.