From 5fab8763518037272bf0534b484245d77f16d247 Mon Sep 17 00:00:00 2001 From: Stefan Schwarz Date: Wed, 1 Feb 2023 18:08:48 +0100 Subject: [PATCH 1/2] add 3d print plate --- 23creus.yaml | 6 ++++++ Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/23creus.yaml b/23creus.yaml index 49479a5..e0752b5 100644 --- a/23creus.yaml +++ b/23creus.yaml @@ -160,6 +160,12 @@ outlines: - -keyholes - -chip +cases: + plate: + - type: outline + name: switchplate + extrude: 1.3 + pcbs: main: outlines: diff --git a/Makefile b/Makefile index 5744e1c..e732de1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ all: node_modules - node src/cli.js 23treus.yaml -o output + node src/cli.js 23creus.yaml -o output cp output/pcbs/main.kicad_pcb kicad/45treus/ node_modules: From c05de81d008e90640bdeb27aa7f0e1056b1e41b4 Mon Sep 17 00:00:00 2001 From: Stefan Schwarz Date: Wed, 1 Feb 2023 18:28:05 +0100 Subject: [PATCH 2/2] add 3d case --- 23creus.yaml | 98 +++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 90 insertions(+), 8 deletions(-) diff --git a/23creus.yaml b/23creus.yaml index e0752b5..b3c3889 100644 --- a/23creus.yaml +++ b/23creus.yaml @@ -121,6 +121,77 @@ outlines: shift: [10, 10] - ref: mirror_matrix_inner_num shift: [10, 10] + + farinner: + - type: polygon + points: + - ref: matrix_inner_num + shift: [10, 10.3] + - ref: matrix_middle_num + shift: [10.3, 10.3] + - ref: matrix_middle_num + shift: [-10.3, 10.3] + - ref: matrix_pinky_num + shift: [-10.3, 10.3] + - ref: matrix_pinky_bottom + shift: [-10.3, -10.3] + - ref: matrix_pinky_bottom + shift: [10.3, -10.3] + - ref: matrix_inner_bottom + shift: [-10.3, -10.3] + - ref: matrix_inner_bottom + shift: [10.3, -10.3] + - ref: mirror_matrix_inner_bottom + shift: [10.3, -10.3] + - ref: mirror_matrix_inner_bottom + shift: [-10.3, -10.3] + - ref: mirror_matrix_pinky_bottom + shift: [10.3, -10.3] + - ref: mirror_matrix_pinky_bottom + shift: [-10.3, -10.3] + - ref: mirror_matrix_pinky_num + shift: [-10.3, 10.3] + - ref: mirror_matrix_middle_num + shift: [-10.3, 10.3] + - ref: mirror_matrix_middle_num + shift: [10.3, 10.3] + - ref: mirror_matrix_inner_num + shift: [10, 10.3] + farouter: + - type: polygon + points: + - ref: matrix_inner_num + shift: [10, 12] + - ref: matrix_middle_num + shift: [12, 12] + - ref: matrix_middle_num + shift: [-12, 12] + - ref: matrix_pinky_num + shift: [-12, 12] + - ref: matrix_pinky_bottom + shift: [-12, -12] + - ref: matrix_pinky_bottom + shift: [12, -12] + - ref: matrix_inner_bottom + shift: [-12, -12] + - ref: matrix_inner_bottom + shift: [12, -12] + - ref: mirror_matrix_inner_bottom + shift: [12, -12] + - ref: mirror_matrix_inner_bottom + shift: [-12, -12] + - ref: mirror_matrix_pinky_bottom + shift: [12, -12] + - ref: mirror_matrix_pinky_bottom + shift: [-12, -12] + - ref: mirror_matrix_pinky_num + shift: [-12, 12] + - ref: mirror_matrix_middle_num + shift: [-12, 12] + - ref: mirror_matrix_middle_num + shift: [12, 12] + - ref: mirror_matrix_inner_num + shift: [10, 12] #- type: keys # side: both # size: 20 @@ -138,16 +209,10 @@ outlines: chip: # cutout for the chip itself - type: rectangle - size: [18, 33] + size: [18, 50] anchor: ref: [matrix_inner_top, mirror_matrix_inner_top] shift: [-9, -24.5] - # cutout for the cable (looks) - - type: rectangle - size: [8, 50] - anchor: - ref: [matrix_inner_top, mirror_matrix_inner_top] - shift: [-4, -24.5] # 14mm holes for cherry switches keyholes: - type: keys @@ -161,10 +226,27 @@ outlines: - -chip cases: - plate: + switchp: - type: outline name: switchplate extrude: 1.3 + outercase: + - type: outline + name: farouter + extrude: 6.3 + - type: outline + name: farinner + extrude: 5 + shift: [0, 0, 1.3] + operation: subtract + - type: outline + name: keyholes + extrude: 1.3 + operation: subtract + - type: outline + name: chip + extrude: 6.3 + operation: subtract pcbs: main: