I would like to build a little experiment with Geometry Nodes.
I have a curve, with a Curve to Points node.
My goal is to connect some of those points, depending on some conditions, like
- no connection from/to the first/last point (easy one)
- a point cannot be connected to its previous/next point (it would just redraw the initial curve)
- a connection angle should be within a certain angle range
Shortest edge trick
I had an attempt by implementing the the shortest edge trick, and it works, but not as expected : in my example, the shortest edges filtered are the ones that "belongs" to the original curve :
I'm not sure that this technique could be used here, or how could I filter only the "good" edges ?
Maybe that the way to achieve this would be that, for each point, I iterate the other points to eventually find a match.
But can Geometry Nodes do that ? Maybe with the shortest edge path node like in this video ?
Any tips ?
Thanks !



Shortest Edge Pathsor via filtering the direction vector. – quellenform Sep 16 '22 at 19:05