Axis identification of curve || grasshopper

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).

I don’t believe a picture is neccesary.

Hi Douriet,

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.

Hope it helps…


SameAxis_re.gh (8.6 KB)

Thanks a lot HS_Kim, it works perfectly, i wasnt able to access my other account, thats why i didnt answer