Hello,
I have a question related to sorting points in a certain way.
In summary, I have this faceted Brep:
Its faces have been intentionally sorted this way:
Bottom and top faces are kept as first and last, while the in-between brep faces are sorted counterclockwise in ascending order:
My goal now is to sort the Brep edge midpoints of this Brep so that they follow the previously established order of the faces as shown above.
Currently, the order of edge midpoints is a bit wacky as a result of their location per-face:
Something more or less like this is what Iâm after:
My take on it was sorting points at each face based on polar coordinates:
This obviously produces âduplicatesâ on shared edges after exploding the Brep - culling these duplicates results in this:
Itâs âcloseâ but not there yet - this then brought me back to the trick shown in a custom C# component shared here.
I am trying to understand the process there, though the result, shown below, is also different from what I want, so Iâm not sure thatâs the method to apply here:
Any advice? I feel like thereâs an âin-betweenâ step Iâm missing when I sort the points at each face?
Thank you.
Hereâs a sample file:
buckypuzzle_peel-sorting.gh (19.4 KB)
P.S.:
@inno, @kev.r - both of you have helped me in previous stages of this project - 'thought Iâd tag you just in case you have insights to share.
Best to all and happy 2024!
René