A method for generating control data for forming a tooth of a spur gear toothing which has an intended widthwise crowning by milling a workpiece at a numerically controlled machine tool having at least 5 axes, at a universal machine tool, by successively moving a milling cutter of the machine tool along a plurality of machining paths based on the generated control data, the method comprising:
- providing a tooth flank geometry of at least one tooth flank of the tooth of the spur gear toothing,
- determining parameters for specifying a change of the provided tooth flank geometry according to the intended widthwise crowing of the tooth, and
- generating control data based on a tooth flank geometry which is changed based on the determined parameters, wherein the changed tooth flank geometry corresponds to a tooth flank geometry of the tooth having the intended widthwise crowing.