Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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