So I’ve made a script that takes a curve drawn on a grid and tuns it into a little wall made of cubes.
I want to use these cubes as bounding boxes to populate them with fancy wall geometry.
The problem is that I need to group corner pieces by the direction each corner is facing so that I can choose what geometry is mapped into each type of the corner.
The grouping should look something like one of the images below (the colors represent different groups)
How should I go about this? It’ll be really helpful if you could you nudge me in the right direction.
I re-made the initial part of placing cubes (a half-cube offset is enough to find cube centers).
Then you can evaluate the curve “a bit” forward and backward and make the “difference” of the tangents to get unique directions (with an orthogonal curve total directions are always 8) aWallOfMine_V2.gh (15.5 KB)