Change curves' direction

Hello, As you see I sorted curves so every 2 parallel curves which are close to each other are in a list but now the problem is that I want to make them have the same direction whether the positive or negative direction … how could I do that ?

Since you have lines:

  1. Get the direction of each.
  2. Find the angle from the first direction to the second
  3. Round that number
  4. Get the second line
  5. For each angle that is not 0, reverse the second line with a Curve.Reverse, otherwise just get the original second line
1 Like

Thanks man, It has worked

1 Like