1. A method, comprising: generating a first electronic model of a workpiece to be manufactured using an injection-molding process; analyzing the first electronic model and distorting the workpiece in the first electronic model according to the analysis; generating a second electronic model of the distorted workpiece; injection molding the workpiece using a mold generated using the second electronic model; and cooling the workpiece such that the injection-molded workpiece gradually assumes substantially the shape of the workpiece in the first electronic model.