stable-trying to detect intersections

trying to detect intersections
commit

commit
commit

commit