summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-12-22 22:17:57 +0100
committerxengineering <me@xengineering.eu>2024-01-02 14:24:06 +0100
commit42ffc886165ca070874fa13b105fcbfc266221d9 (patch)
tree49a92cbfda22cce99fbe13a6a44cb17122c17968
parentf333e4282cb6b5ff1c49d3ea68b0af7422a9548e (diff)
downloadsoundbox-42ffc886165ca070874fa13b105fcbfc266221d9.tar
soundbox-42ffc886165ca070874fa13b105fcbfc266221d9.tar.zst
soundbox-42ffc886165ca070874fa13b105fcbfc266221d9.zip
mech: pcb_case: Remove common.scad
The filename `common.scad` does not explain anything about its content. With this commit the last part - rounded_cube - is moved to its own file.
-rw-r--r--mech/common.scad1
-rw-r--r--mech/pcb_case/panel.scad2
-rw-r--r--mech/pcb_case/rounded_cube.scad (renamed from mech/pcb_case/common.scad)3
-rw-r--r--mech/pcb_case/shell.scad4
4 files changed, 4 insertions, 6 deletions
diff --git a/mech/common.scad b/mech/common.scad
index 0ae93a8..4e05a72 100644
--- a/mech/common.scad
+++ b/mech/common.scad
@@ -1,4 +1,3 @@
-use <pcb_case/common.scad>
use <pcb_case/shell.scad>
use <pcb_case/panel.scad>
diff --git a/mech/pcb_case/panel.scad b/mech/pcb_case/panel.scad
index a42f3a8..df4baf1 100644
--- a/mech/pcb_case/panel.scad
+++ b/mech/pcb_case/panel.scad
@@ -1,4 +1,4 @@
-use <common.scad>
+use <rounded_cube.scad>
module pcb_case_panel(dim, t) {
rounded_cube([t,dim[1]-2*t,dim[2]-2*t], t);
diff --git a/mech/pcb_case/common.scad b/mech/pcb_case/rounded_cube.scad
index dfcf909..5f1dcee 100644
--- a/mech/pcb_case/common.scad
+++ b/mech/pcb_case/rounded_cube.scad
@@ -1,6 +1,3 @@
-use <bolt.scad>
-use <nut.scad>
-
module rounded_cube(dim, radius) {
range_y = [radius, dim[1]-radius];
range_z = [radius, dim[2]-radius];
diff --git a/mech/pcb_case/shell.scad b/mech/pcb_case/shell.scad
index d7bcecc..231455e 100644
--- a/mech/pcb_case/shell.scad
+++ b/mech/pcb_case/shell.scad
@@ -1,4 +1,6 @@
-use <common.scad>
+use <bolt.scad>
+use <nut.scad>
+use <rounded_cube.scad>
module shell_base(dim, t) {
radius = t;