Perimeter/Area/Volume

I’m trying to create a 3D game where you build structures within a certain perimeter, area, and volume. How can I go about checking whether they are within these parameters? I’m still at the design stage, so all options are on the table.

Maybe on mouse click > Check Vector3 distance between click point and origin point.
If distance is below than X. Then it’s able to build?:roll_eyes:

But what if, for example, I want them to create a structure that has a certain limit on the volume of it? Or the area of a certain side?