summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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