Skip to content

Instantly share code, notes, and snippets.

@jarondl
Last active December 5, 2018 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarondl/85618e53a043aca3000b89e0348f3ba0 to your computer and use it in GitHub Desktop.
Save jarondl/85618e53a043aca3000b89e0348f3ba0 to your computer and use it in GitHub Desktop.
angular_conector
// 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);
}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment