Is there a way to select lines according to the axis vector they have, for example in a square there’s 2 lines in x axis and 2 lines in y axis (i understand that it depends on forces, but have no idea of how to identify a curve with force 0).
You can filter them out by assessing if their start and end points have a common coordinate. For instance in your example, both lines in the X-Axis will have start and end points with the the same Y coordinates.