Tree control Grasshopper

Hi there :slight_smile:
im creating “game”- build your own modern temple.
I already created the base, roof and pillars.
However, I have a question.
I used the “bang!” component to explode the tree and then manually chose the branches that i needed and used them to make the pillars. That way it only works if the u&v count in the divide domain component is constant. Is there a way to always pick the faces on the boundary of the surface? regardless of u&v count in the domain division.
Iv uploaded the grasshopper
Help.gh (31.3 KB)
file for clarification.
thank you in advance!!