@franciscopossetto
As @awilliams suggested use Geometry.DistanceTo, find the min distance, filter, extend with Springs.LineLoop.Merge