algorithm; union of rectangles
Given $n$ rectangles in a plane whose all sides belong to two perpendicular directions, an algorithm for the construction of the boundary of the union of those rectangles is shown in teh paper.
 A. Rosenfeld, A. C. Kak: Digital Picture Processing
. Academic Press, New York-London, 1976, MR 0451925