Problem with curve intersection&overlap

I wanted to get overlaps between these two curves below

but got 3 intersection points instead.

is there any problem with my python code? (6.4 KB)

This might be related to this old issue:


So this issue was older than 4years :sweat_smile:
I’d better make detour for this. Thanks a lot!