Intersect and B-spline fitting and deformation based on wildmagic. (unrefactored)