Hey guys. I posted this over on Forrest's forum, thought I'd ask around here if anyone was interested. I saw Forrest's script for making an involute-profile gear and dug up some old code I'd written that did both an involute flank and a trochoidal fillet. The attached version will run in either Matlab or Octave (which you can get open-source in Cygwin, under math).
Call [xlist ylist] = gear(teeth,radius,pressure_angle,fillet,segments)
then plot(xlist,ylist) from within octave/MATLAB in whatever folder you save the attached file to. Teeth and segments should be integers, radius can be anything, pressure_angle will usually be 20 (degrees, it'll convert to radians if it needs to) and fillet can be between 0 and 0.38.
If anyone thinks this is remotely cool, could you help me put it into a script so it can be used directly from AoI?