diff options
author | Steven <steven.vasilogianis@gmail.com> | 2021-11-13 13:36:13 -0500 |
---|---|---|
committer | Steven <steven.vasilogianis@gmail.com> | 2021-11-13 13:36:13 -0500 |
commit | 7c5ffe4102f62149ba810307790d20e2ecec60ea (patch) | |
tree | 9cf729f6779d1810af097b6b207f4963eb6a5f56 | |
parent | 40253fba5ce93c1c399652b9cb7ec8552c0aba2d (diff) |
indentation was 5 instead of 4? wtf
-rw-r--r-- | cubbies.scad | 81 |
1 files 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) { | |||
78 | /* this calculation needs to be referenced by the view_tab_fit function */ | 78 | /* this calculation needs to be referenced by the view_tab_fit function */ |
79 | function cubby_side_bracket_height() = double(tab_height) + tab_tolerance; | 79 | function cubby_side_bracket_height() = double(tab_height) + tab_tolerance; |
80 | module cubby_side (depth, height, screw_tabs=true) { | 80 | module cubby_side (depth, height, screw_tabs=true) { |
81 | screw_tab_width=15; | 81 | screw_tab_width=15; |
82 | screw_tab_height=20; | 82 | screw_tab_height=20; |
83 | screw_tab_thickness=thickness; | 83 | screw_tab_thickness=thickness; |
84 | 84 | ||
85 | yrot(180+90) color("red") side_wall() { | 85 | yrot(180+90) color("red") side_wall() { |
86 | if ( screw_tabs ) { | 86 | if ( screw_tabs ) { |
87 | position(TOP+FRONT+LEFT) screw_tab(); | 87 | position(TOP+FRONT+LEFT) screw_tab(); |
88 | up(screw_tab_height) position(BOTTOM+FRONT+LEFT) screw_tab(); | 88 | up(screw_tab_height) position(BOTTOM+FRONT+LEFT) screw_tab(); |
89 | } | 89 | } |
90 | attach(BOTTOM, TOP) zrot(90) tab_bracket(); | 90 | attach(BOTTOM, TOP) zrot(90) tab_bracket(); |
91 | attach(TOP, BOTTOM) zrot(90) tab_bracket(); | 91 | attach(TOP, BOTTOM) zrot(90) tab_bracket(); |
92 | } | 92 | } |
93 | children(); | 93 | children(); |
94 | 94 | ||
95 | module side_wall () { | 95 | module side_wall () { |
96 | strut_wall(depth, height - cubby_side_bracket_height() * 2) children(); | 96 | strut_wall(depth, height - cubby_side_bracket_height() * 2) children(); |
97 | } | 97 | } |
98 | 98 | ||
99 | module tab_bracket () { | 99 | module tab_bracket () { |
100 | difference() { | 100 | difference() { |
101 | cuboid([depth,thickness,cubby_side_bracket_height()]); | 101 | cuboid([depth,thickness,cubby_side_bracket_height()]); |
102 | alternating_tabs(true, "female", depth, tab_width, tab_depth, | 102 | alternating_tabs(true, "female", depth, tab_width, tab_depth, |
103 | tab_height, tab_padding, tab_tolerance); | 103 | tab_height, tab_padding, tab_tolerance); |
104 | alternating_tabs(false, "female", depth, tab_width, tab_depth, | 104 | alternating_tabs(false, "female", depth, tab_width, tab_depth, |
105 | tab_height, tab_padding, tab_tolerance); | 105 | tab_height, tab_padding, tab_tolerance); |
106 | } | 106 | } |
107 | children(); | 107 | children(); |
108 | } | 108 | } |
109 | 109 | ||
110 | module screw_tab () { | 110 | module screw_tab () { |
111 | difference() { | 111 | difference() { |
112 | cuboid([screw_tab_width, screw_tab_thickness,screw_tab_height], | 112 | cuboid([screw_tab_width, screw_tab_thickness,screw_tab_height], |
113 | anchor=LEFT+TOP); | 113 | anchor=LEFT+TOP); |
114 | right(screw_tab_width * (2 / 3)) zrot(90) yrot(90) { | 114 | right(screw_tab_width * (2 / 3)) zrot(90) yrot(90) { |
115 | right(screw_tab_height * (1 / 3)) cyl(l=15, r=2, anchor=RIGHT); | 115 | right(screw_tab_height * (1 / 3)) cyl(l=15, r=2, anchor=RIGHT); |
116 | right(screw_tab_height * (2 / 3)) cyl(l=15, r=2, anchor=LEFT); | 116 | right(screw_tab_height * (2 / 3)) cyl(l=15, r=2, anchor=LEFT); |
117 | } | 117 | } |
118 | 118 | } | |
119 | } | 119 | children(); |
120 | children(); | 120 | } |
121 | } | ||
122 | } | 121 | } |
123 | 122 | ||
124 | module strut_wall(w, h) { | 123 | module strut_wall(w, h) { |