spline geometry optimization