I’ve been thinking on this for a while and can’t seem to get a good solution.
What would be the best way to split this surface into two squares automatically without manual manipulation.
I’ve been thinking on this for a while and can’t seem to get a good solution.
What would be the best way to split this surface into two squares automatically without manual manipulation.
But this does look quite manual. What if the vertices had different positions?
The reason im asking is because the building im making has this type of shape all over the place and for some reason index 0 of the vertices are in different positions.
Well, you better upload your file, so we can have a look. Regards, Eef
The file is huge and confusing. Even for me who made it.
Example under is the usecase i’m after. A script that can divide this shape without having to manually pick the corners/edges to split. The shape only consists of 90 degree turns.
There’s always 2 solutions right?
You can switch which solution it returns by changing the ListItem component to feed the Line component items -1 and 0 in stead of 0 and 1…
SplitSRF.gh (11.5 KB)
The division is automatic.
splitpoly.gh (13.0 KB)
But maybe it’s simpler than it seems.
splitpoly a.gh (11.2 KB)
You still didn’t post your file, even after being asked. You only narrowed the goal posts.