I do need to change the location of the starting point of my curves into the middle of the longest side on top or right side, depending on which side it is longer and I can’t find a reliable way to do this task.
I do have a lot of curves, one of them are longer in length direction (X) other ones are longer in the wide direction (Y). Right now my starting point (for this example) it is located on the “1” location and I do need to move-it into the location “2” or “3” depending on which side it is longer. Each curve have a different starting point and are different in shape and size.
This problem looks complex, because I’ve also seen other sorting algorithm that I found in this forum and all of them are generating mixed results. Some of the lines have the result on the bottom or on the left. I do need to relocate on top or right because when I cut this pieces (I cut them in order from Bottom left to top right) and in that points they do have some residual support strength from the surrounding material. Otherwise this pieces will move because the vacuum suction it is not powerful enough to hold on the table the small pieces. Mixed_result.3dm (115.3 KB)
Regarding to sorting the order of the geometries, I do find somewhere (I can’t remember from where) a definition that do what I need (not perfectly), but better than nothing, but unfortunately it is working only with square objects.
I did overlook that because I was on my phone. I see holes in some pieces that likely cause confusion. Too bad that wasn’t included in your first post in this thread.
I also see cases where apparently straight lines are broken in pieces by Explode Curve which causes confusion. Both conditions easily found and fixed given adequate test geometry - too late.
Your definition it is good, however the last component “Curve Middle” it is only displaying the point where I do need the actual curve to start. I needed to connect the other components to get the actual curves with the modified starting point.
I think you can get this on your own.
Are you new to GH?
If so, this problem is way too difficult to you.
Try to practice on simple examples and get familiar to basic components.