Updated spline creation for compatibility with Trelis.