diff options
author | xengineering <me@xengineering.eu> | 2024-01-02 17:09:17 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-02 20:29:40 +0100 |
commit | 5371d56bd722c320c6a76753a6e68d9407cadbe3 (patch) | |
tree | 365cae9f6d1c4b82b783529c17480fc6fc5f0c44 /mech/production.scad | |
parent | 285e100abf2ec0736cded36aba938098b1b7bb60 (diff) | |
download | soundbox-5371d56bd722c320c6a76753a6e68d9407cadbe3.tar soundbox-5371d56bd722c320c6a76753a6e68d9407cadbe3.tar.zst soundbox-5371d56bd722c320c6a76753a6e68d9407cadbe3.zip |
mech: pcb_case: Switch shell to PCB-based params
After switching the panel to PCB-based dimensions the shell follows with
this commit.
Diffstat (limited to 'mech/production.scad')
-rw-r--r-- | mech/production.scad | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/mech/production.scad b/mech/production.scad index 52e4ece..448a439 100644 --- a/mech/production.scad +++ b/mech/production.scad @@ -1,24 +1,19 @@ include <parameters.scad> +use <pcb_case/conversion.scad> use <pcb_case/shell.scad> use <pcb_case/panel.scad> module production() { + dim = dim_pcb_to_case(pcb_dim, margins, t); spacing = 5; - pcb_case_shell_bottom( - dim, t, h, [ - base_socket, - base_socket + dx, - base_socket + dy, - base_socket + dx + dy - ] - ); + pcb_case_shell_bottom(pcb_dim, drillings, margins, t); translate([-spacing, 0, 0]) rotate([0, 180, 0]) translate([0, 0, -dim[2]]) - pcb_case_shell_top(dim, t); + pcb_case_shell_top(pcb_dim, margins, t); translate([-spacing, dim[1]+spacing, 0]) rotate([0, -90, 0]) |