genSpline function

Generate spline curves