How can i check if a trigger is completely full?

Hey im making a town building game and i want to make sure that all of a building is completely flat on the ground in order to place it and if its not flat on the ground you will not be able to place it.

https://forum.unity.com/threads/checking-for-terrains-slope-with-raycast-need-help.251063/