From 5371d56bd722c320c6a76753a6e68d9407cadbe3 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 2 Jan 2024 17:09:17 +0100 Subject: mech: pcb_case: Switch shell to PCB-based params After switching the panel to PCB-based dimensions the shell follows with this commit. --- mech/production.scad | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'mech/production.scad') 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 +use use use 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]) -- cgit v1.2.3-70-g09d2