Given an input set S of k-dimensional axis aligned rectangles, I would like to find all the k-dimensional intervals on which at least 2 k-dimensional rectangles overlap. If more than 2 k-dimensional rectangles overlap, I would like to find the count of how many were overlapping on each of such regions.
Edit: I have done this in 1D and 2D using Klee's Measure and the Line Sweep Algorithm. I am confused about how to get it beyond 2 dimensions.