summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven <steven.vasilogianis@gmail.com>2021-06-06 11:50:11 -0400
committerSteven <steven.vasilogianis@gmail.com>2021-06-06 11:50:11 -0400
commit63cd7281057d4fb09a0c013489fc5833f43470e9 (patch)
tree2e63d8079034fc651e5dcd984e29ba6b84a6eac1
parente68dac90a94e94027cf3385ce6aabe1e604dec26 (diff)
Move tab_spacing() into tabs.scad
-rw-r--r--cubbies.scad6
-rw-r--r--tabs.scad3
2 files changed, 4 insertions, 5 deletions
diff --git a/cubbies.scad b/cubbies.scad
index b40502f..bf1f0f1 100644
--- a/cubbies.scad
+++ b/cubbies.scad
@@ -6,7 +6,7 @@ include <BOSL2/walls.scad>;
6 6
7$fn = 20; 7$fn = 20;
8 8
9part = "male tab"; // [both:Bottom + Divider,bottom::Bottom Only,divider:Divider Only,male tab line:Line of male tabs,female tab line: Line of female tabs,view_fit_test:Generate a model to view tab fit (for debugging)] 9part = "view fit test"; // [both:Bottom + Divider,bottom::Bottom Only,divider:Divider Only,male tab line:Line of male tabs,female tab line: Line of female tabs,view_fit_test:Generate a model to view tab fit (for debugging)]
10 10
11// actual size for first cubby 11// actual size for first cubby
12cubby_width = 50; 12cubby_width = 50;
@@ -119,8 +119,6 @@ module view_tab_fit (w, d, h) {
119} 119}
120 120
121 121
122function tab_spacing (tab_width) = tab_width * 3.5;
123
124module add_tabs ( length, male=true, between=false ) { 122module add_tabs ( length, male=true, between=false ) {
125 tab_line(length, tab_width=tab_width, tab_depth=tab_depth, tab_height=tab_height, male=male, tolerance=tab_tolerance, edge_padding=5, between=between); 123 tab_line(length, tab_width=tab_width, tab_depth=tab_depth, tab_height=tab_height, male=male, tolerance=tab_tolerance, edge_padding=5, between=between);
126} 124}
@@ -177,7 +175,7 @@ module cubby_bottom (width, depth) {
177 add_tabs(depth, male=true, between=false); 175 add_tabs(depth, male=true, between=false);
178 back(move_dist) 176 back(move_dist)
179 add_tabs(depth, male=true, between=true); 177 add_tabs(depth, male=true, between=true);
180 } 178 }
181 } 179 }
182 180
183 children(); 181 children();
diff --git a/tabs.scad b/tabs.scad
index 275488a..d2fa728 100644
--- a/tabs.scad
+++ b/tabs.scad
@@ -1,5 +1,7 @@
1include <BOSL2/std.scad>; 1include <BOSL2/std.scad>;
2 2
3function tab_spacing (tab_width) = tab_width * 3.5;
4
3module single_tab ( 5module single_tab (
4 tab_width=10, 6 tab_width=10,
5 tab_depth=5, 7 tab_depth=5,
@@ -10,7 +12,6 @@ module single_tab (
10 size=male 12 size=male
11 ? [tab_width, tab_depth, tab_height] 13 ? [tab_width, tab_depth, tab_height]
12 : [tab_width + tolerance, tab_depth + tolerance, tab_height + tolerance]; 14 : [tab_width + tolerance, tab_depth + tolerance, tab_height + tolerance];
13 move_dist = male ? 0 : (tolerance / 2);
14 if (male) { 15 if (male) {
15 #cuboid(size) children(); 16 #cuboid(size) children();
16 } else { 17 } else {