From dcab80663202f599f4945b782639a3785e712548 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 1 Mar 2022 12:39:38 -0500 Subject: [PATCH] Derive key guide width from bitting specs --- snap_on_templates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snap_on_templates.py b/snap_on_templates.py index 177aed1..2ae2e9a 100644 --- a/snap_on_templates.py +++ b/snap_on_templates.py @@ -25,7 +25,6 @@ back_thickness = 1.5 # this number is somewhat estimated, but quite important # it is the offset from the end of the pliers to the point of the cutter lishi_cutter_offset = .54 * MM_PER_IN -key_guide_width = 15 key_guide_height = 12.5 notch_width = 1 @@ -34,6 +33,8 @@ notch_depth = 0.5 def lishi_template(spec: BittingSpecification, name: str, depth: float): + key_guide_width = lishi_width/2 + side_thickness + spec.TFC - spec.BCC/2 + result = ( cq .Workplane("front")