Stack blocks (alike hollow pyramid) on a random perimeter

Hello the community,

I would like to create a perimeter by entering manually the number of sides and angles.
Conjointly, I would like to create a block starting on this perimeter.
Then the blocks are stacked along the perimeter and go up in a pyramidal scheme.

Thank you

Liliane

Hi @lilianenguyen3

Do you have any diagrams of what you want?