]> www.fi.muni.cz Git - things.git/commitdiff
balcony-doors-handle
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 19 Jun 2019 15:42:58 +0000 (17:42 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 19 Jun 2019 15:42:58 +0000 (17:42 +0200)
balcony-doors-handle.scad [new file with mode: 0644]

diff --git a/balcony-doors-handle.scad b/balcony-doors-handle.scad
new file mode 100644 (file)
index 0000000..900e372
--- /dev/null
@@ -0,0 +1,27 @@
+eps = 0.01;
+infty = 200;
+
+body_l = 80;
+screw_dist = 47.5;
+body_w = 15;
+body_h = 20;
+screw_hole = 3.5;
+screw_head = 9;
+screw_h = 5;
+side_d = body_h;
+side_y = 15;
+
+difference() {
+       translate([-body_l/2, -body_w/2, 0])
+               cube([body_l, body_w, body_h]);
+       // screw holes
+       for (x = [-screw_dist/2, screw_dist/2]) {
+               translate([x, 0, -eps])
+                       cylinder(r = screw_hole/2, h = body_h + 2*eps);
+               translate([x, 0, screw_h])
+                       cylinder(r = screw_head/2, h = body_h);
+       }
+       // sides
+       for (y = [-side_y, side_y]) translate([-body_l/2-eps, y, body_h/2])
+               rotate([0, 90, 0]) cylinder(r = side_d/2, h = body_l+2*eps);
+}