summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2019-08-19 19:38:07 +0200
committerpacien2019-08-19 19:38:07 +0200
commited31d9bab9128caf567f9385a91af709294fdcb3 (patch)
tree99147ed1d6d67a424ed8fb1871ef6c1d89ecb450
parentef39e5aad677813c469792ad5ab5eb48f9e711a1 (diff)
downloadcloset_rod_socket-master.tar.gz
import first versionHEADmaster
-rw-r--r--closet_rod_socket.scad35
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 @@
1module reflect(axises) {
2 children();
3 mirror(axises) children();
4}
5
6socket_thickness = 10;
7rod_diameter = 17;
8screw_diameter = 6;
9screw_head_diameter = 12;
10screw_countersink = 6.5;
11
12$fn = 40;
13
14difference() {
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