gate culling based on segment intersection