Added geometry function to help the construction of buildings