Dimension of the generalized 4-corner set and its projections