At what point?
An engine bay isn't a perfect cube. The subframe intersects it, the shock towers intersect it, etc.
And even after figuring out the dimensions, that doesn't tell you where the subframe is, so that the oil pan will be on either side of it, etc.