Last active
December 5, 2018 14:58
-
-
Save jarondl/85618e53a043aca3000b89e0348f3ba0 to your computer and use it in GitHub Desktop.
angular_conector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Connecting two poles of different radius at 90 degrees angle | |
// They are joined by a screw but keep moving, hoping this will | |
// fix it | |
A = 30; | |
B = 80; | |
// The poles radii. r2 must be the bigger one (only slightly bigger!) | |
r1 = 10.5; | |
r2 = 12; | |
// The width of the cylinder and plate. We can actually thicken the | |
// plate alone if necassary. | |
h = 3; | |
$fa=1; | |
$fs = 0.01; | |
module pipe() { | |
translate([A,0,0]) rotate([0,90,0]) cylinder((B-A), r2+h, r2+h); | |
translate([A,-r2-h,-r2-h]) cube([B-A, 2*(r2+h), r2+h]); | |
} | |
difference(){ | |
union(){ | |
pipe(); | |
rotate([0,0,90]) pipe(); | |
polyhedron([[A,0,-r2-h],[B,0,-r2-h],[0,B,-r2-h],[0,A,-r2-h],[A,0,-r2],[B,0,-r2],[0,B,-r2],[0,A,-r2]], | |
[ | |
[0,1,2,3], | |
[7,6,5,4], | |
[0,4,5,1], | |
[0,3,7,4], | |
[2,6,7,3], | |
[1,5,6,2]]); | |
} | |
// Drill holes for the poles. | |
rotate([0,90,0]) cylinder((B+A), r1, r1); | |
rotate([-90,0,0]) cylinder((B+A), r2, r2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment