Derive key guide width from bitting specs

This commit is contained in:
Adam Goldsmith 2022-03-01 12:39:38 -05:00
parent a8f2382f5e
commit dcab806632

View File

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