From ee5994c2b09272bd192e1c74ac56f6333ff1cc0b Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 23 Dec 2023 16:52:13 +0100 Subject: mech: Add use statements only where required This avoids unrequired usage of other source files and cleans up the common.scad file. --- mech/back.scad | 2 ++ mech/bottom.scad | 2 ++ mech/common.scad | 3 --- mech/front.scad | 2 ++ mech/top.scad | 2 ++ 5 files changed, 8 insertions(+), 3 deletions(-) (limited to 'mech') diff --git a/mech/back.scad b/mech/back.scad index 16f6c2e..ef541cb 100644 --- a/mech/back.scad +++ b/mech/back.scad @@ -1,5 +1,7 @@ include +use + module back() { pcb_case_panel_back(dim, t); } diff --git a/mech/bottom.scad b/mech/bottom.scad index cac355e..195244f 100644 --- a/mech/bottom.scad +++ b/mech/bottom.scad @@ -1,3 +1,5 @@ +use + include module bottom() { diff --git a/mech/common.scad b/mech/common.scad index cfb27f2..eb2d368 100644 --- a/mech/common.scad +++ b/mech/common.scad @@ -1,6 +1,3 @@ -use -use - t = 2; tol = 1; base_socket = [3/2+2.3+2*t+tol,3/2+2.1+2.7+t+tol]; diff --git a/mech/front.scad b/mech/front.scad index e35c146..aca7e23 100644 --- a/mech/front.scad +++ b/mech/front.scad @@ -1,5 +1,7 @@ include +use + module front() { pcb_case_panel_front(dim, t); } diff --git a/mech/top.scad b/mech/top.scad index 55882f0..114ae16 100644 --- a/mech/top.scad +++ b/mech/top.scad @@ -1,5 +1,7 @@ include +use + module top() { difference() { pcb_case_shell_top(dim, t); -- cgit v1.2.3-70-g09d2