Generate the shape of a gear corresponding to an input gear shape.