Spline-Based Contact: Algorithms and Applications