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) )