to simplify, I have a set of points laid out like this and I want to be able to connect them with a line or a curve based on a certain index offset, for example: connecting index i with index i+1 only if i is an odd number: so 1 would connect with 2, 3 with 4, 5 with 6 and 7 with 0. (but NOT 2 with 3 for example)
here's what I would like to achieve:
This looks extremely simple but i've been stuck on it for a few days, I can't seem to wrap my head around it, the indices keep changing especially when I instance the lines and realize them: the i and i+1 attributes that I captured before change when the lines are added, so the results become unpredictable. any help will be much much appreciated.
Update: the workaround I'm using meanwhile is I add a circle with as many points as there are in the input geometry, and I set poistion of the circle's points to match the input points. then I delete the edges with an odd number. this indeed creates the lines between the points but it's not ideal, as I'm planning to add parameters to the lines between the points. so a solution that involves instancing mesh lines or curve lines would be perfect.