summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven <steven.vasilogianis@gmail.com>2021-11-25 08:43:14 -0500
committerSteven <steven.vasilogianis@gmail.com>2021-11-25 08:43:14 -0500
commitfc64fefdbaf8e97ae097c89cf0e0925a7626f2d8 (patch)
tree36845be7cea508f28c1adb700ba7e8f4ffd3f094
parenta6d0d8f2419ce7f30caeefe42152d29ab1074df6 (diff)
moved default_max_bridge
-rw-r--r--cubbies.scad10
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;
24max_bridge=0; 24max_bridge=0;
25 25
26/* [Tab Dimensions] */ 26/* [Tab Dimensions] */
27// width of each tab
27tab_width=10; 28tab_width=10;
28tab_padding=5; // minimum material between tabs 29// material between tabs
30tab_padding=5;
31// this value will be added to the mortises for additional tolerance
29tab_tolerance=0.5; 32tab_tolerance=0.5;
30 33
31/* [Screw Tabs] */ 34/* [Screw Tabs] */
@@ -34,6 +37,7 @@ screw_tabs=true;
34/* [Hidden] */ 37/* [Hidden] */
35tab_depth=thickness; 38tab_depth=thickness;
36tab_height=thickness; 39tab_height=thickness;
40default_max_bridge=(cubby_height + cubby_width) / 5;
37 41
38if ( part == "both" ) { 42if ( part == "both" ) {
39 both(); 43 both();
@@ -142,8 +146,8 @@ module cubby_side (depth, height, screw_tabs=true) {
142} 146}
143 147
144module strut_wall(w, h) { 148module 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,