summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven <steven.vasilogianis@gmail.com>2021-06-06 15:37:14 -0400
committerSteven <steven.vasilogianis@gmail.com>2021-06-06 15:37:14 -0400
commita3290f3d51eeec738c52555f70afb3c2cae6d678 (patch)
tree79fe6791e684c7840a8a25a427abed4cb8e42695
parent076da011f479dbc7b6506bae93ce662fe56de788 (diff)
Fix bug in screw tab placement
-rw-r--r--cubbies.scad19
1 files changed, 10 insertions, 9 deletions
diff --git a/cubbies.scad b/cubbies.scad
index d7aa4f2..903c78d 100644
--- a/cubbies.scad
+++ b/cubbies.scad
@@ -126,12 +126,16 @@ module add_tabs ( length, male=true, between=false ) {
126 126
127module cubby_divider (depth, height) { 127module cubby_divider (depth, height) {
128 function bracket_height () = thickness * 2; 128 function bracket_height () = thickness * 2;
129 screw_tab_width = 15;
130 screw_tab_height = 20;
131 screw_tab_thickness = thickness;
132
129 133
130 divider_wall() { 134 divider_wall() {
135 position(TOP+FRONT+LEFT) screw_tab();
136 up(screw_tab_height) position(BOTTOM+FRONT+LEFT) screw_tab();
131 attach(BOTTOM, TOP) zrot(90) tab_bracket(); 137 attach(BOTTOM, TOP) zrot(90) tab_bracket();
132 attach(TOP, BOTTOM) zrot(90) tab_bracket(); 138 attach(TOP, BOTTOM) zrot(90) tab_bracket();
133 position(TOP+FRONT+LEFT) screw_tab();
134 up(bracket_height() * 2) position(BOTTOM+FRONT+LEFT) screw_tab();
135 } 139 }
136 children(); 140 children();
137 141
@@ -150,16 +154,13 @@ module cubby_divider (depth, height) {
150 } 154 }
151 155
152 module screw_tab () { 156 module screw_tab () {
153 tab_width = 15;
154 tab_height = 20;
155 tab_thickness = thickness;
156 difference() { 157 difference() {
157 cuboid([tab_width, tab_thickness,tab_height], anchor=LEFT+TOP); 158 cuboid([screw_tab_width, screw_tab_thickness,screw_tab_height], anchor=LEFT+TOP);
158 right(tab_width * (2 / 3)) zrot(90) yrot(90) { 159 right(screw_tab_width * (2 / 3)) zrot(90) yrot(90) {
159 //right(#cyl(l=15, r=2, anchor=TOP+LEFT); 160 //right(#cyl(l=15, r=2, anchor=TOP+LEFT);
160 //right(tab_height - 5) #cyl(l=15, r=2, anchor=LEFT); 161 //right(tab_height - 5) #cyl(l=15, r=2, anchor=LEFT);
161 right(tab_height * (1 / 3)) #cyl(l=15, r=2, anchor=RIGHT); 162 right(screw_tab_height * (1 / 3)) #cyl(l=15, r=2, anchor=RIGHT);
162 right(tab_height * (2 / 3)) #cyl(l=15, r=2, anchor=LEFT); 163 right(screw_tab_height * (2 / 3)) #cyl(l=15, r=2, anchor=LEFT);
163 } 164 }
164 165
165 } 166 }