Get occupied region of terrain?

Hi,

I’m trying to get the occupied region (region that contains voxels other than air) of terrain, but I can’t find a way to do it. Terrain.Size always returns (2044, 252, 2044) even with terrain that extends well beyond that and workspace:GetBoundingBox() only accounts for parts; not terrain voxels. Does anyone know how I can accomplish this?