A simple Dart program that creates an STL of a gear. Uses the vector_math package for some geometry stuff.
The bulk of the program. Its only function, gear, takes a few settings and generates a list of triangles that the gear is made of.
It has a function convertToSTL that takes a list of triangles and converts them to a string in STL format.
The main program. It passes hardcoded parameters to gear, passes the result to convertToSTL, then saves that in gear.stl.