3d version of SWCombine.