I want to iterate through a list of data. After each run i want to pick the best option and jump into next list index.
Lets say i have a list of curves and a list of lines. I want to:
1.pick the first line, rotate it 0-90 degrees (1deg jump each iteration)
2. pick the one with smallest amount of intersections and save it
3. Jump to a next line
4. Repeat steps 1-3 until i am out of lines
I’d like to use Anemone for that and have a problem with step 2. Do you have any ideas how to pick and save and choose best line rotation?
I thought about using ‘constant output’ for loop end and a data recorder that would construct branches depending on loop counter. Later i would sort each branch (by number of intersections) and pick the first item of each branch.
That is kind of heavy and messy on the other hand. Is there another way that i am missing?