Maybe this is something that can be done easily, and perhaps I’ve made it unnecessarily hard, what I have here is a triangular surface which I divided into points.
As a result the yellow edge and direction is the list order. When I used Flip Matrix, the green edge and arrow becomes the new order, but is there a way to get to select it from the blue highlighter line? I can’t seem to figure this out.
An extension of the task here sa I’m tranforming the base geometry to a polygon but using the triangle structures to split at certain points onthe line. SDivide is changing the behaviour again - but is there a way to select points along the 4 edges in order? Or what other command should I be using to divide the surface if not SDivide?
Edit #3: And what will need to be done to be able to organise the points “horizontally” (I know I can create rectangular grid based off the surface, but can it be done without having to recreate the grid and uss what’s existing already?)
Seems you almost had a solution. The question is “How to sort the points?”
You have to find 1 or more parameters for that. If, as example, you need it to be concentric, distance to centre of area would be interesting.
In your question it is about direction in “global world”. That is why I approached it with the x, y and z parameter of every point.
Three sliders to give more/less weight to each (X, Y and/or Z) (just play with these to get what you want.
The weighted order is used to sort the list of points.
and split it,
Using the last slider to check the result.
Thanks so much Eef - I get your logic here! Sorry I have been busy since I posted the question on other things and only got time to revisit it now.
I do have one question, see screenshot below: do you know why when the case in the screenshot below, from 224 to 225, the points being selected aren’t following the original sequence? I am noticing it every now and then across different “Z-row”.
With the image you can’t understand where the error is.
I attach the file so you can check if there are any differences.
In practice the distances of the points from a line or based on Z are measured. Triangle Surface Div Sort Points Order a.gh (24.4 KB)
I have no straight forwarded answer there.
Best is to attache panels to the the K output of the sort component.
And see what those values look line.
And experiment a bit setting the sliders not exactly to 0 but a bit above like 0.001
That is what I would do to start here. Regards, Eef