From 7c5ffe4102f62149ba810307790d20e2ecec60ea Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 13 Nov 2021 13:36:13 -0500 Subject: indentation was 5 instead of 4? wtf --- cubbies.scad | 81 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 40 insertions(+), 41 deletions(-) diff --git a/cubbies.scad b/cubbies.scad index 879dc10..ea1884d 100644 --- a/cubbies.scad +++ b/cubbies.scad @@ -78,47 +78,46 @@ module cubby_bottom (width, depth) { /* this calculation needs to be referenced by the view_tab_fit function */ function cubby_side_bracket_height() = double(tab_height) + tab_tolerance; module cubby_side (depth, height, screw_tabs=true) { - screw_tab_width=15; - screw_tab_height=20; - screw_tab_thickness=thickness; - - yrot(180+90) color("red") side_wall() { - if ( screw_tabs ) { - position(TOP+FRONT+LEFT) screw_tab(); - up(screw_tab_height) position(BOTTOM+FRONT+LEFT) screw_tab(); - } - attach(BOTTOM, TOP) zrot(90) tab_bracket(); - attach(TOP, BOTTOM) zrot(90) tab_bracket(); - } - children(); - - module side_wall () { - strut_wall(depth, height - cubby_side_bracket_height() * 2) children(); - } - - module tab_bracket () { - difference() { - cuboid([depth,thickness,cubby_side_bracket_height()]); - alternating_tabs(true, "female", depth, tab_width, tab_depth, - tab_height, tab_padding, tab_tolerance); - alternating_tabs(false, "female", depth, tab_width, tab_depth, - tab_height, tab_padding, tab_tolerance); - } - children(); - } - - module screw_tab () { - difference() { - cuboid([screw_tab_width, screw_tab_thickness,screw_tab_height], - anchor=LEFT+TOP); - right(screw_tab_width * (2 / 3)) zrot(90) yrot(90) { - right(screw_tab_height * (1 / 3)) cyl(l=15, r=2, anchor=RIGHT); - right(screw_tab_height * (2 / 3)) cyl(l=15, r=2, anchor=LEFT); - } - - } - children(); - } + screw_tab_width=15; + screw_tab_height=20; + screw_tab_thickness=thickness; + + yrot(180+90) color("red") side_wall() { + if ( screw_tabs ) { + position(TOP+FRONT+LEFT) screw_tab(); + up(screw_tab_height) position(BOTTOM+FRONT+LEFT) screw_tab(); + } + attach(BOTTOM, TOP) zrot(90) tab_bracket(); + attach(TOP, BOTTOM) zrot(90) tab_bracket(); + } + children(); + + module side_wall () { + strut_wall(depth, height - cubby_side_bracket_height() * 2) children(); + } + + module tab_bracket () { + difference() { + cuboid([depth,thickness,cubby_side_bracket_height()]); + alternating_tabs(true, "female", depth, tab_width, tab_depth, + tab_height, tab_padding, tab_tolerance); + alternating_tabs(false, "female", depth, tab_width, tab_depth, + tab_height, tab_padding, tab_tolerance); + } + children(); + } + + module screw_tab () { + difference() { + cuboid([screw_tab_width, screw_tab_thickness,screw_tab_height], + anchor=LEFT+TOP); + right(screw_tab_width * (2 / 3)) zrot(90) yrot(90) { + right(screw_tab_height * (1 / 3)) cyl(l=15, r=2, anchor=RIGHT); + right(screw_tab_height * (2 / 3)) cyl(l=15, r=2, anchor=LEFT); + } + } + children(); + } } module strut_wall(w, h) { -- cgit v1.2.3