Create a building dynamically

In this example we create a polygon building using following script: