RegionDimension
RegionDimension[reg] gives the geometric dimension of the region reg.
The dimension is the number of independent directions within the region.
Examples
RegionDimension[Line[{{0, 0}, {1, 1}}]]RegionDimension[Disk[]]RegionDimension[Ball[{0, 0, 0}]]*See the official Wolfram Language Reference for more details.