Skip to content

Commit

Permalink
Added reinforcing columns to print
Browse files Browse the repository at this point in the history
  • Loading branch information
mryndzionek committed Oct 30, 2023
1 parent 096e4b0 commit 0844498
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ def generate(config: Config, odir='output', switch_mesh=False):
switchPlate = base.union(reinfPlate.translate(
(0, 0, -1))).faces("<Z[1]").edges().fillet(0.9)
switchPlate = switchPlate.cut(keys)
rot = partial(rotate, config)
d = (config.spacerThickness - 0.5)
ps = [kp[p] for p in filter(
lambda p: p[0] > 0 and p[1] < config.nRows - 1, kp.keys())]
switchPlate = switchPlate.union(cq.Workplane("XY").pushPoints([rot((x - 8.5, y + 9.5)) for x, y in ps]).cylinder(
d, 1.5).translate((0, 0, -d / 2)).mirror('YZ', union=True))

topPlate = get_base(config, kp, config.plateThickness, True)
if config.cnc:
Expand Down

0 comments on commit 0844498

Please sign in to comment.