diff options
author | Steven <steven.vasilogianis@gmail.com> | 2021-06-06 11:50:11 -0400 |
---|---|---|
committer | Steven <steven.vasilogianis@gmail.com> | 2021-06-06 11:50:11 -0400 |
commit | 63cd7281057d4fb09a0c013489fc5833f43470e9 (patch) | |
tree | 2e63d8079034fc651e5dcd984e29ba6b84a6eac1 | |
parent | e68dac90a94e94027cf3385ce6aabe1e604dec26 (diff) |
Move tab_spacing() into tabs.scad
-rw-r--r-- | cubbies.scad | 6 | ||||
-rw-r--r-- | tabs.scad | 3 |
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 | ||
9 | part = "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)] | 9 | part = "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 |
12 | cubby_width = 50; | 12 | cubby_width = 50; |
@@ -119,8 +119,6 @@ module view_tab_fit (w, d, h) { | |||
119 | } | 119 | } |
120 | 120 | ||
121 | 121 | ||
122 | function tab_spacing (tab_width) = tab_width * 3.5; | ||
123 | |||
124 | module add_tabs ( length, male=true, between=false ) { | 122 | module 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(); |
@@ -1,5 +1,7 @@ | |||
1 | include <BOSL2/std.scad>; | 1 | include <BOSL2/std.scad>; |
2 | 2 | ||
3 | function tab_spacing (tab_width) = tab_width * 3.5; | ||
4 | |||
3 | module single_tab ( | 5 | module 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 { |