Distribution on pavilon - how to change array?

Hey guys, I’m still struggling with one thing: On this pavilion, the spikes are supposed to be distributed - inside and outside. I’ve tried the whole surface as well as outside and inside separately, but weird things happen, especially along the edges. Can someone help me to improve the script? The problem is that the spikes overlap and at the same time there are bigger gaps in other places.

I would prefer to have the tips close together like this:

I am a very beginner and thankful for any help! :pray: :slightly_smiling_face:
17.03.22_Basisobjekte neu exploded single srf.3dm (3.1 MB)
spikes on surface.tent.gh (21.0 KB)