Better polygon intersection test
(see also my comment on 83030be)