include use use use use use 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();