Repairing a gear without gear cutting equipment. OK making a new gear from scratch is not easy, but repairing an existing one is not too hard. I had an idler gear on a large diesel engine driving a 3 ph alternator, about 1200HP. The cast iron idler gear was the intermediate gear on the timing gears for the camshaft it was a good size about 14" from memory. It was too big for our mill an dwe didn't have any rotary indexing device nor any suitable cutters.
The camshaft had jammed up and the steel driver gear had chewed out about 5 teeth in one spot on the idler. The rest of the gear was good. The process was to fix a sheet of steel shim about 2 or 3 thou, to the gear and carefully scribe the gear profile from a good area covering a few more teeth than the damaged area, also pick up a couple of other spots opposite and at about 90 deg.
carefully cut out the teeth as marked this has to be very accurate. when finished put the pattern aside and prepare the damaged gear for welding or brazing, I chose to braze it as I didn't have any suitable cast iron rods. grind out and prepare the damaged area, then fill it with brazing or welding make sure to overfill all over.
Then set up in lathe . I used a previously prepared mandrel so that I could be sure it was running true. Face both sides leaving 1 or 2 thou. proud and turn the OD again leaving 1 or 2 thou. proud. Paint both side faces with layout blue.
when dry, afix pattern to one side and scribe tooth profile onto gear, then repeat on other side. Rough out tooth cut out with hacksaw, then file to scribed lines. It's a good idea to test fit into machine before filing too far. At this point you can file the last thou or two from the OD and the sides, and dress up the finished gear to a good fit.
The rebuilt gear was able to run for the next 6 weeks until we got back to home port where a new gear was waiting for us. Examining the repaired gear showed it had stood up fairly well so it was put away in the spares box for that engine.