summaryrefslogtreecommitdiff
path: root/mech
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-12-23 16:52:13 +0100
committerxengineering <me@xengineering.eu>2024-01-02 14:24:06 +0100
commitee5994c2b09272bd192e1c74ac56f6333ff1cc0b (patch)
treeebf0a917929af05f43d651a95c053b078e01aab2 /mech
parent220d692384555120f246e0d856a614be31e776bb (diff)
downloadsoundbox-ee5994c2b09272bd192e1c74ac56f6333ff1cc0b.tar
soundbox-ee5994c2b09272bd192e1c74ac56f6333ff1cc0b.tar.zst
soundbox-ee5994c2b09272bd192e1c74ac56f6333ff1cc0b.zip
mech: Add use statements only where required
This avoids unrequired usage of other source files and cleans up the common.scad file.
Diffstat (limited to 'mech')
-rw-r--r--mech/back.scad2
-rw-r--r--mech/bottom.scad2
-rw-r--r--mech/common.scad3
-rw-r--r--mech/front.scad2
-rw-r--r--mech/top.scad2
5 files changed, 8 insertions, 3 deletions
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 <common.scad>
+use <pcb_case/panel.scad>
+
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 <pcb_case/shell.scad>
+
include <common.scad>
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 <pcb_case/shell.scad>
-use <pcb_case/panel.scad>
-
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 <common.scad>
+use <pcb_case/panel.scad>
+
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 <common.scad>
+use <pcb_case/shell.scad>
+
module top() {
difference() {
pcb_case_shell_top(dim, t);