Write Our Own T-Spline Code