Help with flip matrix

im trying to make vertical lines from the points i divided but im getting an error in flip matrix. i attached some grasshopper file for reference. please help me out with this

line.gh (14.3 KB)

Hi CM Adithya,

You’ll want to use PathMapper.

Here is a nice collection of references.

change the order of operations (i re-arranged your nodes, added no new one) or do as @Japhy says

  • changing the order gives you a cleaner (you desired) data-structure.

line.gh (16.5 KB)

1 Like

NEVER :bangbang: :wink:

2 Likes

Nothing is going to work in your case as you have a duplicates:

Your tree has unequal length of branches (no need for Path Mapper):

Get rid of the duplicates, sort points and divide the result by the number of elements in a column:

That’s the quickest method.

hi

line(Mehdi).gh (14.5 KB)

What do you think about this algorithm? It works pretty smoothly with the sliders and might actually be useful.
By the way, about the Flip Matrix component — this one can flip identical branches.