diff options
author | pacien | 2019-08-19 19:38:07 +0200 |
---|---|---|
committer | pacien | 2019-08-19 19:38:07 +0200 |
commit | ed31d9bab9128caf567f9385a91af709294fdcb3 (patch) | |
tree | 99147ed1d6d67a424ed8fb1871ef6c1d89ecb450 | |
parent | ef39e5aad677813c469792ad5ab5eb48f9e711a1 (diff) | |
download | closet_rod_socket-master.tar.gz |
-rw-r--r-- | closet_rod_socket.scad | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/closet_rod_socket.scad b/closet_rod_socket.scad new file mode 100644 index 0000000..90e01bc --- /dev/null +++ b/closet_rod_socket.scad | |||
@@ -0,0 +1,35 @@ | |||
1 | module reflect(axises) { | ||
2 | children(); | ||
3 | mirror(axises) children(); | ||
4 | } | ||
5 | |||
6 | socket_thickness = 10; | ||
7 | rod_diameter = 17; | ||
8 | screw_diameter = 6; | ||
9 | screw_head_diameter = 12; | ||
10 | screw_countersink = 6.5; | ||
11 | |||
12 | $fn = 40; | ||
13 | |||
14 | difference() { | ||
15 | // base | ||
16 | scale([4/3, 3/4, 1]) | ||
17 | cylinder(r=rod_diameter, h=socket_thickness); | ||
18 | |||
19 | // rod socket | ||
20 | translate([0, rod_diameter/4, 0]) { | ||
21 | cylinder(d=rod_diameter, h=socket_thickness); | ||
22 | |||
23 | translate([-rod_diameter/2, 0, 0]) | ||
24 | cube([rod_diameter, rod_diameter, socket_thickness]); | ||
25 | } | ||
26 | |||
27 | // screw holes | ||
28 | reflect([1, 0, 0]) | ||
29 | translate([rod_diameter*7/8, 0, 0]) { | ||
30 | cylinder(d=screw_diameter, h=socket_thickness); | ||
31 | |||
32 | translate([0, 0, socket_thickness-screw_countersink]) | ||
33 | cylinder(d1=screw_diameter, d2=screw_head_diameter, h=screw_countersink); | ||
34 | } | ||
35 | } \ No newline at end of file | ||