diff options
author | Steven <steven.vasilogianis@gmail.com> | 2021-06-05 16:58:03 -0400 |
---|---|---|
committer | Steven <steven.vasilogianis@gmail.com> | 2021-06-05 16:58:03 -0400 |
commit | e901ffedb3545abe2d10a5049ccd72111beeac47 (patch) | |
tree | 45a89e6945b22e8b3a90d97921288fc8778270a2 | |
parent | 25a48c8850e3a9e5fd54a186fadb0334fa42b1ca (diff) |
whitespace
-rw-r--r-- | cubbies.scad | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/cubbies.scad b/cubbies.scad index fada402..b40502f 100644 --- a/cubbies.scad +++ b/cubbies.scad | |||
@@ -6,17 +6,19 @@ include <BOSL2/walls.scad>; | |||
6 | 6 | ||
7 | $fn = 20; | 7 | $fn = 20; |
8 | 8 | ||
9 | // actual size for first cubby | 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)] |
10 | /* cubby_width = 50; */ | ||
11 | /* cubby_depth = 180; */ | ||
12 | /* cubby_divider_height = 90; */ | ||
13 | |||
14 | /* [Cubby dimensions] */ | ||
15 | 10 | ||
11 | // actual size for first cubby | ||
16 | cubby_width = 50; | 12 | cubby_width = 50; |
17 | cubby_depth = 180; | 13 | cubby_depth = 180; |
18 | cubby_divider_height = 90; | 14 | cubby_divider_height = 90; |
19 | 15 | ||
16 | /* [Cubby dimensions] */ | ||
17 | |||
18 | /* cubby_width = 110; */ | ||
19 | /* cubby_depth = 110; */ | ||
20 | /* cubby_divider_height = 110; */ | ||
21 | |||
20 | // thickness of both bottom + dividers | 22 | // thickness of both bottom + dividers |
21 | thickness = 5; | 23 | thickness = 5; |
22 | 24 | ||
@@ -32,9 +34,7 @@ strut_thickness = 5; | |||
32 | tab_width = 10; | 34 | tab_width = 10; |
33 | tab_depth = 5; | 35 | tab_depth = 5; |
34 | tab_height = 5; | 36 | tab_height = 5; |
35 | tab_tolerance = 0.5; | 37 | tab_tolerance = 0.1; |
36 | |||
37 | part = "female 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)] | ||
38 | 38 | ||
39 | if ( part == "bottom" ) { | 39 | if ( part == "bottom" ) { |
40 | rot(90) yrot(90) cubby_bottom(cubby_width, cubby_depth); | 40 | rot(90) yrot(90) cubby_bottom(cubby_width, cubby_depth); |
@@ -48,7 +48,7 @@ if ( part == "bottom" ) { | |||
48 | print_single_tab(male=true); | 48 | print_single_tab(male=true); |
49 | } else if ( part == "female tab") { | 49 | } else if ( part == "female tab") { |
50 | print_single_tab(male=false); | 50 | print_single_tab(male=false); |
51 | } else if ( part == "view_fit_test") { | 51 | } else if ( part == "view fit test") { |
52 | view_tab_fit(cubby_width, cubby_depth, cubby_divider_height); | 52 | view_tab_fit(cubby_width, cubby_depth, cubby_divider_height); |
53 | } else if ( part == "both") { | 53 | } else if ( part == "both") { |
54 | cubby(cubby_width, cubby_depth, cubby_divider_height); | 54 | cubby(cubby_width, cubby_depth, cubby_divider_height); |
@@ -78,14 +78,30 @@ module print_tab_line (w, d, h, male=true) { | |||
78 | 78 | ||
79 | module print_single_tab (male=true) { | 79 | module print_single_tab (male=true) { |
80 | if (male) { | 80 | if (male) { |
81 | single_tab(tab_width=tab_width, tab_depth=tab_depth, tab_height=tab_height, male=true, tolerance=tab_tolerance) | 81 | single_tab(tab_width=tab_width, |
82 | tab_depth=tab_depth, | ||
83 | tab_height=tab_height, | ||
84 | male=true, | ||
85 | tolerance=tab_tolerance) | ||
82 | attach(BOTTOM, TOP) | 86 | attach(BOTTOM, TOP) |
83 | single_tab(tab_width=tab_width*1.5, tab_depth=tab_depth*1.5, tab_height=tab_height*1.5, male=true, tolerance=tab_tolerance); | 87 | single_tab(tab_width=tab_width*1.5, |
88 | tab_depth=tab_depth*1.5, | ||
89 | tab_height=tab_height*1.5, | ||
90 | male=true, | ||
91 | tolerance=tab_tolerance); | ||
84 | } else { | 92 | } else { |
85 | difference() { | 93 | difference() { |
86 | single_tab(tab_width=tab_width*1.5, tab_depth=tab_depth*1.5, tab_height=tab_height*1.5, male=false, tolerance=tab_tolerance); | 94 | single_tab(tab_width=tab_width*1.5, |
95 | tab_depth=tab_depth*1.5, | ||
96 | tab_height=tab_height*1.5, | ||
97 | male=false, | ||
98 | tolerance=tab_tolerance); | ||
87 | up((tab_width / 8)) | 99 | up((tab_width / 8)) |
88 | single_tab(tab_width=tab_width, tab_depth=tab_depth, tab_height=tab_height, male=false, tolerance=tab_tolerance); | 100 | single_tab(tab_width=tab_width, |
101 | tab_depth=tab_depth, | ||
102 | tab_height=tab_height, | ||
103 | male=false, | ||
104 | tolerance=tab_tolerance); | ||
89 | } | 105 | } |
90 | } | 106 | } |
91 | } | 107 | } |