From 08444989f7e34336902e4e665e2c621bfc4eb249 Mon Sep 17 00:00:00 2001 From: Mariusz Ryndzionek Date: Mon, 30 Oct 2023 18:50:53 +0100 Subject: [PATCH] Added reinforcing columns to print --- keyboard.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/keyboard.py b/keyboard.py index 50a528c..dcadca2 100644 --- a/keyboard.py +++ b/keyboard.py @@ -266,6 +266,12 @@ def generate(config: Config, odir='output', switch_mesh=False): switchPlate = base.union(reinfPlate.translate( (0, 0, -1))).faces(" 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: