diff options
author | Steven <steven.vasilogianis@gmail.com> | 2021-11-25 08:43:14 -0500 |
---|---|---|
committer | Steven <steven.vasilogianis@gmail.com> | 2021-11-25 08:43:14 -0500 |
commit | fc64fefdbaf8e97ae097c89cf0e0925a7626f2d8 (patch) | |
tree | 36845be7cea508f28c1adb700ba7e8f4ffd3f094 | |
parent | a6d0d8f2419ce7f30caeefe42152d29ab1074df6 (diff) |
moved default_max_bridge
-rw-r--r-- | cubbies.scad | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cubbies.scad b/cubbies.scad index 26bcc22..3fbb5aa 100644 --- a/cubbies.scad +++ b/cubbies.scad | |||
@@ -24,8 +24,11 @@ strut_thickness=5; | |||
24 | max_bridge=0; | 24 | max_bridge=0; |
25 | 25 | ||
26 | /* [Tab Dimensions] */ | 26 | /* [Tab Dimensions] */ |
27 | // width of each tab | ||
27 | tab_width=10; | 28 | tab_width=10; |
28 | tab_padding=5; // minimum material between tabs | 29 | // material between tabs |
30 | tab_padding=5; | ||
31 | // this value will be added to the mortises for additional tolerance | ||
29 | tab_tolerance=0.5; | 32 | tab_tolerance=0.5; |
30 | 33 | ||
31 | /* [Screw Tabs] */ | 34 | /* [Screw Tabs] */ |
@@ -34,6 +37,7 @@ screw_tabs=true; | |||
34 | /* [Hidden] */ | 37 | /* [Hidden] */ |
35 | tab_depth=thickness; | 38 | tab_depth=thickness; |
36 | tab_height=thickness; | 39 | tab_height=thickness; |
40 | default_max_bridge=(cubby_height + cubby_width) / 5; | ||
37 | 41 | ||
38 | if ( part == "both" ) { | 42 | if ( part == "both" ) { |
39 | both(); | 43 | both(); |
@@ -142,8 +146,8 @@ module cubby_side (depth, height, screw_tabs=true) { | |||
142 | } | 146 | } |
143 | 147 | ||
144 | module strut_wall(w, h) { | 148 | module strut_wall(w, h) { |
145 | bridge=max_bridge ? max_bridge : (h+w)/5; | 149 | bridge=max_bridge ? max_bridge : default_max_bridge; |
146 | sparse_strut( | 150 | sparse_strut( |
147 | l=w, | 151 | l=w, |
148 | h=h, | 152 | h=h, |
149 | thick=thickness, | 153 | thick=thickness, |