I have a bunch of edges which are the result of spliting a curve into splines and getting those splines trimed and convert them to mesh. Now I need to create new edges in order to close those gaps, I've been trying multiple options such as merge by distance which wont work as I need to keep all my vertices and not create new ones, I've also tried to connect each vertex with its next one by index but this also wont work as indices are unsorted because of the spline split. My only hope is to be able to find the nearest vertex to each vertex and create new lines from there, but the sample nearest node or geometry proximity will always return the same vertex which is being sampled.
I would really like to avoid using any kind of booleans.