Hello everyone, I recently faced the problem of finding the area covered by several rectangles. Here is an example text: there is a canvas, rectangles are drawn on it (intersections are possible) and you need to find a shaded area. For example, if one rectangle is drawn on top of another, then the coverage area is equal to the area of one of the rectangles. Is there a universal way to solve for N rectangles?