Ordering Points Around Perimeter

Hello!

Does anyone know how to order the points along the perimeter? I am currently using “Sort Points as Perimeter” node from sastrugi.points package and it seems to be working as you can see for the straight portion of points but when it gets to the corners you can see from the polycurve that the points lose their order.

I would like the path (order) to be what the highlighted line is in both images.

Any feedback would be appreciated

Thanks!

image

Hi @dolan.klock ,

I think the Traveling Salesman problem would interest you, take a look at these topics:

3 Likes

Hi @dolan.klock and welcome, not sure about the negative coordinates value, but give it a try:

2 Likes

This was solution here in “shortest path through points” post. replaced code block with my list of unsorted points and it worked!

Thank you!!!

1 Like