From fc64fefdbaf8e97ae097c89cf0e0925a7626f2d8 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 25 Nov 2021 08:43:14 -0500 Subject: moved default_max_bridge --- cubbies.scad | 10 +++++++--- 1 file 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; max_bridge=0; /* [Tab Dimensions] */ +// width of each tab tab_width=10; -tab_padding=5; // minimum material between tabs +// material between tabs +tab_padding=5; +// this value will be added to the mortises for additional tolerance tab_tolerance=0.5; /* [Screw Tabs] */ @@ -34,6 +37,7 @@ screw_tabs=true; /* [Hidden] */ tab_depth=thickness; tab_height=thickness; +default_max_bridge=(cubby_height + cubby_width) / 5; if ( part == "both" ) { both(); @@ -142,8 +146,8 @@ module cubby_side (depth, height, screw_tabs=true) { } module strut_wall(w, h) { - bridge=max_bridge ? max_bridge : (h+w)/5; - sparse_strut( + bridge=max_bridge ? max_bridge : default_max_bridge; + sparse_strut( l=w, h=h, thick=thickness, -- cgit v1.2.3