Removed CreateRegularSpline function as it was unused.