diff options
author | Steven <steven.vasilogianis@gmail.com> | 2021-04-17 18:14:32 -0400 |
---|---|---|
committer | Steven <steven.vasilogianis@gmail.com> | 2021-04-17 18:14:32 -0400 |
commit | dbfe9d9608e0a6547ca2f837fbea6a719f16ee66 (patch) | |
tree | 152b5e21b62e149042ad8f0328b58f60145aa5f0 |
wireframe cubbies for all your shit
-rw-r--r-- | cubbies.scad | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/cubbies.scad b/cubbies.scad new file mode 100644 index 0000000..e8f83e3 --- /dev/null +++ b/cubbies.scad | |||
@@ -0,0 +1,50 @@ | |||
1 | include <BOSL2/std.scad> | ||
2 | include <BOSL2/walls.scad> | ||
3 | include <BOSL2/distributors.scad> | ||
4 | include <BOSL2/joiners.scad> | ||
5 | |||
6 | wall_thickness = 5; | ||
7 | bottom_thickness = 5; | ||
8 | strut_thickness = 5; | ||
9 | |||
10 | module cubby (width, depth, divider_height) { | ||
11 | module bottom() { | ||
12 | rotate(a=[0,90,0]) | ||
13 | sparse_strut(h=width, | ||
14 | l=depth, | ||
15 | thick=strut_thickness, | ||
16 | maxang=45, | ||
17 | strut=5, | ||
18 | anchor=BOTTOM+BACK+RIGHT) { | ||
19 | grooves(); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | module grooves() { | ||
24 | back(5) | ||
25 | attach(TOP) | ||
26 | ycopies(20, ceil((depth / 25) + 1)) | ||
27 | dovetail("male", slide=4, width=5, taper=0, height=4); | ||
28 | back(-5) | ||
29 | attach(BOTTOM) | ||
30 | ycopies(20, ceil((depth / 25) + 1)) | ||
31 | dovetail("male", slide=4, width=5, taper=0, height=4); | ||
32 | } | ||
33 | |||
34 | module side() { | ||
35 | rotate(a=[0,0,0]) | ||
36 | sparse_strut(h=divider_height, | ||
37 | l=depth, | ||
38 | thick=strut_thickness, | ||
39 | maxang=45, | ||
40 | strut=5, | ||
41 | anchor=BOTTOM+BACK+RIGHT); | ||
42 | } | ||
43 | |||
44 | bottom(); | ||
45 | left(10) side(); | ||
46 | } | ||
47 | |||
48 | cubby(50, 190, 150); | ||
49 | |||
50 | |||