From e9ec4e46cbf3b8a9f9fdefb6fa94dce23bc116f2 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 1 Jan 2024 22:55:21 +0100 Subject: mech: Move from multiple to single production file This makes the file structure simpler and makes it easy to produce the whole case in one run. --- mech/production.scad | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 mech/production.scad (limited to 'mech/production.scad') diff --git a/mech/production.scad b/mech/production.scad new file mode 100644 index 0000000..471b3c0 --- /dev/null +++ b/mech/production.scad @@ -0,0 +1,34 @@ +include + +use +use + +module production() { + spacing = 5; + + pcb_case_shell_bottom( + dim, t, h, [ + base_socket, + base_socket + dx, + base_socket + dy, + base_socket + dx + dy + ] + ); + + translate([-spacing, 0, 0]) + rotate([0, 180, 0]) + translate([0, 0, -dim[2]]) + pcb_case_shell_top(dim, t); + + translate([-spacing, dim[1]+spacing, 0]) + rotate([0, -90, 0]) + translate([-t, -t, -t]) + pcb_case_panel_back(dim, t); + + translate([dim[0], dim[1]+spacing, 0]) + rotate([0, -90, 0]) + translate([2*t-dim[0], -t, -t]) + pcb_case_panel_front(dim, t); +} + +production(); -- cgit v1.2.3-70-g09d2