Thingiverse
openscad triangle generator
door postcoital_mass
6
Downloads
2
Likes
0
Makes
You can use this module giving only 3 arguments for generate usable triangle, for calculation purposes you can set last variable calc=true, then giving at least two sides and one angle you can pick from SSA and SAS triangles generated in echo() output. AAS calculation is trivial and outputs only one figure or nothing, same with SSS, AAA triangles exists but have any perimeter lenght >0 you wish for, so calculation is used only for generate triangles by two sides and a angle, example:
triangle(a=20,b=5,c=4,A=4,B=70,C=30,calc=true); // found 5 triangles: acA abA bcB and two bcC "B" means angle in degrees and "b" means opposite side.
triangle(20,5,4,0,70,30,true);// found 3 valid triangles: bcB and two bcC
triangle(20,5,4,0,0,30,true);// only two bcC
You can import this file using "use "; and use calling triangle() module;
Module counts all types of not numeric values as 0, and 0 used as undefined value inside, negative numbers will be converted to absolute value. triangle(4,4,4,
triangle(a=20,b=5,c=4,A=4,B=70,C=30,calc=true); // found 5 triangles: acA abA bcB and two bcC "B" means angle in degrees and "b" means opposite side.
triangle(20,5,4,0,70,30,true);// found 3 valid triangles: bcB and two bcC
triangle(20,5,4,0,0,30,true);// only two bcC
You can import this file using "use "; and use calling triangle() module;
Module counts all types of not numeric values as 0, and 0 used as undefined value inside, negative numbers will be converted to absolute value. triangle(4,4,4,
Heb je dit model geprint? Inloggen en deel je make!
Log in om een reactie achter te laten
InloggenNog geen reacties – wees de eerste!