This program uses a unique method to generate SVG gear shapes that you can import into a CAD program for
cutting gears with CNC.
- The gear parameters are used to create the shape of a rack;
- The curve that each line or corner of the rack would cut into the gear, as they move together,
is determined exactly, to the limits of floating point precision;
- The shape of the gear is determined to be the lower envelope, in polar coordinates from the
gear center, of all these cuts. This is again determined exactly to the limits of floating point
precision; Then, finally
- Each curve in the gear shape is approximated with circular arcs, to the required tolerance.
Circular arcs are used, because they are directly supported by all CNC machines, and will not need
to be approximated again. Separate tolerance values are specified for the tooth faces
(critically important) and the fillets (not so important when clearance is used).
Source is available on
GitHub.
Undercuts
Because the gear shape is a polar function, the ability to model undercutting is limited. When the fillet
undercuts to tooth, it takes everything further away on the same radius with it.
Useful involute pinions with as few as 6 teeth are possible with
aggressive profile shifting, however, so undercutting that exceeds this limitation can usually be avoided.