I understand what you are saying, jororaitchev. Initially, I was more concerned with the volume before the enclosures were built during the design and drafting phase. It never occurred to me one would measure after with something like a speaker cabinet. I have seen Archimedes principle applied for displacement, or the volume of solid, irregular shaped objects. I have used Archimedes principle to measure lard for baking to keep from having to pack a measuring cup with the fat.
In the case of ship building, these volumes are known for the most part, with an adjustment feature built in by way of added or removed ballast perhaps, provided they are relatively close to start with. A ship hull comes from the architect with a designed waterline before the first piece of material is cut. When the boat is launched, it will be stated that she "rests on her lines". . . .hopefully.