fix!: Remove middle intersection point on shared line segments in collision detection (#4004)