From 428f5f03be74eee866f94b76ee1b6c52e7d2daf6 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 1 Mar 2022 16:59:44 -0500 Subject: [PATCH] Allow passing in a key profile to lishi_template --- snap_on_templates.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/snap_on_templates.py b/snap_on_templates.py index 2ae2e9a..de69af0 100644 --- a/snap_on_templates.py +++ b/snap_on_templates.py @@ -32,7 +32,7 @@ notch_height = 1.5 notch_depth = 0.5 -def lishi_template(spec: BittingSpecification, name: str, depth: float): +def lishi_template(spec: BittingSpecification, name: str, depth: float, profile: cq.Sketch): key_guide_width = lishi_width/2 + side_thickness + spec.TFC - spec.BCC/2 result = ( @@ -66,8 +66,7 @@ def lishi_template(spec: BittingSpecification, name: str, depth: float): .tag("key_guide") .edges("not X", tag="key_guide").vertices("X or