Rectilinear polygon intersection