This is a simple sprocket generation tool usable in FreeCAD. The tooth profiles are drawn according to ANSI standards from the methods outlined in,
Standard Handbook of Chains, Chains for Power Transmission and Material Handling, Second Edition, American Chain Association
This code is based on the work of David Douard in his implementation of a gear generator for FreeCAD.
Table 2-1: General dimensions of ASME B29.1 roller chain Figure 4-24: ANS roller chain sprocket diameters Figure 4-26 ANS roller chain tooth form