spline repair for visualization