Curve-fitting with piecewise parametric cubics | Synapse