Investigating the effect of mechanical discontinuities on joint spacing