Flip key guide to other side of template to allow cutting near bow
This commit is contained in:
parent
beec75e511
commit
15e7f52071
@ -62,8 +62,8 @@ def lishi_template(spec: BittingSpecification, name: str, depth: float, profile:
|
||||
|
||||
result = (
|
||||
result
|
||||
.faces(">Y", tag="lishi_interface").vertices(">X and <Z")
|
||||
.workplane(centerOption="CenterOfMass")
|
||||
.faces(">Y", tag="lishi_interface").vertices("<X and <Z")
|
||||
.workplane(centerOption="CenterOfMass").center(-key_guide_width, 0)
|
||||
.rect(key_guide_width, key_guide_height, centered=False).extrude(spec.key_thickness + extra_key_thickness + back_thickness, combine=False)
|
||||
.tag("key_guide")
|
||||
.edges("not <Y").fillet(corner_radius)
|
||||
@ -75,9 +75,9 @@ def lishi_template(spec: BittingSpecification, name: str, depth: float, profile:
|
||||
result = (
|
||||
result
|
||||
.add(result.objects[0].Edges())
|
||||
.faces(">Y", tag="key_guide").vertices(">XZ").workplane(centerOption="CenterOfMass")
|
||||
.faces(">Y", tag="key_guide").vertices("<X and >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)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user