Fitting B-spline curves to point clouds by curvature-based squared distance minimization | Synapse