Loading the generator…
The pinion rolls inside the internal gear and turns in the same direction as the gear. The ratio is the number of teeth of the internal gear divided by the number of teeth of the pinion – with 60 and 15 teeth the internal gear turns four times more slowly. The centre distance is half the difference of the pitch diameters, a = m · (z₂ − z₁) / 2, so for the same ratio the drive is much narrower than a pair of external gears, and the rim of the internal gear shields the mesh and makes it easier to keep grease in. The same arrangement is the heart of a planetary gearbox: all it takes is a few pinions as planets and a sun gear in the middle.
In an internal pair the teeth can interfere in three ways. A tooth tip of the internal gear can enter the root of the pinion below its base circle, where there is no involute any more. The tips of both gears can collide as they enter or leave the mesh – the more easily, the smaller the difference in tooth count. Finally, a pinion with almost as many teeth as the internal gear could not be put in from the side, only slid in along the axis. The generator does not guess this from general rules: it checks collision on the real profile of both gears over a full rotation, and when a change leads to a collision, it looks for the nearest setting without one or refuses the change and gives the reason.
As with a spur gear pair, the generator meets the entered ratio exactly, and when you enter the centre distance it chooses the tooth counts and the profile shift of both gears to fit that distance. The outer diameter lock keeps the outer diameter of the internal gear when you change the number of teeth, and the centre distance lock keeps the spacing of the shafts. The animation shows how the pinion rolls inside the internal gear and how both turn in the same direction.
Both gears print flat and separately, and they wear in after a few turns. The internal gear has a tooth space that narrows towards the bottom, so with a small module the generator makes it shallower so that the bottom stays printable; the pinion gets the largest root fillet that does not touch the tips of the internal gear. The pinion can have a bore, a hub and a set screw like any gear.