Transmission ratio i = 12/24
The pin wheel: orange. The tooth wheel: green.
The tooth profile is the envelope of a family of the pin circles, centers of which are on an epicycloid (external gearing) or a hypocycloid (internal gearing) traced by pin circle center when the pin wheel rolls without slipping on the tooth wheel.