Created
May 22, 2020 21:04
-
-
Save kallmanation/2ebad89ec81b38b283bd2e45868bf4ea to your computer and use it in GitHub Desktop.
Complex 3D fillets in OpenSCAD
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
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