From 15e7f520719228057b9d95a27bda70624e2bdcbd Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 5 May 2022 17:42:03 -0400 Subject: [PATCH] Flip key guide to other side of template to allow cutting near bow --- snap_on_templates.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snap_on_templates.py b/snap_on_templates.py index ddf784b..093c72f 100755 --- a/snap_on_templates.py +++ b/snap_on_templates.py @@ -62,8 +62,8 @@ def lishi_template(spec: BittingSpecification, name: str, depth: float, profile: result = ( result - .faces(">Y", tag="lishi_interface").vertices(">X and Y", tag="lishi_interface").vertices("Y", tag="key_guide").vertices(">XZ").workplane(centerOption="CenterOfMass") + .faces(">Y", tag="key_guide").vertices("Z").workplane(centerOption="CenterOfMass") # TODO: better positioning - .moveTo(lishi_width / 2 + side_thickness, -notch_height/2) + .moveTo(-(lishi_width / 2 + side_thickness), -notch_height/2) .rect(notch_width, notch_height).cutBlind(-notch_depth) .faces(">Y").workplane(centerOption="CenterOfMass").text(name, text_size, -text_depth) )