1. A computer-implemented method for generating a smoothed curve from a drawn curve, comprising: defining a function for one or more signed areas between the smoothed curve and the drawn curve; and generating the smoothed curve by applying the function as a constraint.