Spur gear generator