Commits

uniqx committed 36fa5a5

fuacet :D, some corner part

Comments (0)

Files changed (2)

openscad/corner_screw_mount.scad

+
+// parameters
+
+screw_radius = 5;
+edge_radius = 4;
+
+hx = 30;
+hy = 30;
+hz = 30;
+
+
+// model
+
+translate( [-hx/2,-hy/2,0] ){
+  difference(){
+    minkowski(){
+      cube([hx-edge_radius,hy-edge_radius,hz-edge_radius]);
+      sphere(r=edge_radius);
+    }
+    #translate([hx/3,hy/3,-hz/2])
+      cylinder(h=hz*2,r=screw_radius);
+    #translate([-hx/2,2*hy/3,hz/3]) rotate(90,[0,1,0])
+      cylinder(h=hx*2,r=screw_radius);
+    #translate([2*hx/3,1.5*hy,2*hz/3]) rotate(90,[1,0,0])
+      cylinder(h=hy*2,r=screw_radius);
+  }
+}
+
+/////////////////////////////////////////////////////////////////////////
+//                                                                     //
+//          DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE                //
+//                  Version 2, December 2004                           //
+//                                                                     //
+// Copyright (C) 2011 Clifford, uniqx                                  //
+//  Metalab, 1010 Vienna, Austria                                      //
+// Everyone is permitted to copy and distribute verbatim or modified   //
+// copies of this license document, and changing it is allowed as long //
+// as the name is changed.                                             //
+//                                                                     //
+//            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE              //
+//   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION   //
+//                                                                     //
+//  0. You just DO WHAT THE FUCK YOU WANT TO.                          //
+//                                                                     //
+/////////////////////////////////////////////////////////////////////////
+
+r1 = 25;
+r2 = 20;
+r3 = 13;
+r4  = 8.5/2;
+
+h = 50;
+o2 = h-18;
+o1 = h-40;
+
+difference() {
+	cylinder(r1 = r1, r2 = r2, h = h, $fn = 8);
+	#translate([0, 0, o1])
+		cylinder(r = r4, h = h);
+	translate([0, 0, o2])
+		cylinder(r = r3, h = h);
+}