Skip to content

Instantly share code, notes, and snippets.

@kallmanation
Created May 22, 2020 21:04
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 kallmanation/2ebad89ec81b38b283bd2e45868bf4ea to your computer and use it in GitHub Desktop.
Save kallmanation/2ebad89ec81b38b283bd2e45868bf4ea to your computer and use it in GitHub Desktop.
Complex 3D fillets in OpenSCAD
r1 = 100;
r2 = 76;
r3 = 42;
overlap12 = 33;
overlap13 = 21;
overlap23 = 21;
distance12 = r1+r2-overlap12;
distance13 = r1+r3-overlap13;
distance23 = r2+r3-overlap23;
theta = acos(((pow(distance12, 2) + pow(distance13, 2) - pow(distance23, 2))/(2*distance12*distance13)));
sphere(r1);
translate([distance12,0]) sphere(r2);
translate([sin(theta)*distance12, cos(theta)*distance12]) sphere(r3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment