Consider the following two rectangles:
- X: 0, Y: 0, Width: 100, Height: 100
- X: 100, Y: 0, Width: 100, Height: 100
The two rectangles have the edge (100, 0) -> (100, 100) in common. The union of these two produces the following output.

Shouldn't it produce something like this?

Also this:
