diff options
author | xengineering <me@xengineering.eu> | 2024-12-24 12:39:34 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-12-26 12:06:36 +0100 |
commit | db966c966929dd3abc29ebab7ce47d638ba4a94f (patch) | |
tree | af2b844a2938de1698712642261bc2f8aa52732a /case/production.scad | |
parent | 03d41e8069623b5d627dfb298c471a16c380c91d (diff) | |
download | soundbox-db966c966929dd3abc29ebab7ce47d638ba4a94f.tar soundbox-db966c966929dd3abc29ebab7ce47d638ba4a94f.tar.zst soundbox-db966c966929dd3abc29ebab7ce47d638ba4a94f.zip |
WIP: Move `mech` directory to `case`
TODO: There are outdated references (see grep -R mech .)
The directory name should reflect what is inside, not the field of
engineering it belongs to.
Diffstat (limited to 'case/production.scad')
-rw-r--r-- | case/production.scad | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/case/production.scad b/case/production.scad new file mode 100644 index 0000000..5d04fbd --- /dev/null +++ b/case/production.scad @@ -0,0 +1,38 @@ +include <parameters.scad> + +use <panel_front.scad> + +use <pcb_case/conversion.scad> +use <pcb_case/shell.scad> +use <pcb_case/panel.scad> +use <pcb_case/spacer.scad> + +module production() { + dim = dim_pcb_to_case(pcb_dim, margins, t); + spacing = 5; + + 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(pcb_dim, margins, t); + + translate([-spacing, dim[1]+spacing, 0]) + rotate([0, -90, 0]) + translate([-t, -t, -t]) + pcb_case_panel_back(pcb_dim, margins, t); + + translate([0, dim[1]+spacing, t]) + rotate([0, 90, 0]) + translate([2*t-dim[0], -t, -t]) + panel_front(pcb_dim, margins, t); + + for(i = [0:3]) { + translate([dim[0]+bolt_dk/2+spacing, bolt_dk/2+i*(bolt_dk+spacing), 0]) { + spacer(); + } + } +} + +production(); |