Match discontinuous point lists structures both ways


I am looking get match User Text attributes between two lists of points. Each of the lists represents an iteration, the first list is the list of discontinous points of a curve network prior to adding the selected curve, whereas the second list of discontinuous points includes geometric changes.

The issue I have right now is that it is easy to match the first list to the second (so match the data in Rhino to Grasshopper), but I can’t seem to find a good way to match the Grasshopper data to the Rhino data. I need to do this so I can get some of the User Text keys and values from Rhino and some from Grasshopper.

20230908_Point data structure (36.8 KB)

Okay, found the solution now that it’s not 30 degrees inside.

Here’s one method with reverse closest point matching:

And another option matching points afterwards:

Both appear to perform equally well in this example case (6 ms for each solution).
20230908_Point data structure (36.4 KB)