This algorithm has quadratic run time so it can be slow with large profiles. The "tangent" method generally produces good results when connecting a discrete polygon to a convex, finely sampled curve.
Some results have been hidden because they may be inaccessible to you