mhodovaniuk/segment-intersection — pull request #1 by borneq (2014-12-21 10:04:04+00:00)
Title: Horizontal segments has now SegmentType.OX

Hi, I correct horizontal lines, but still one problem (tested on translation scala ->c++): I test with 10 thousands lines and it caused stack overflow. Method treeSearch is called depth not so much - for example depth=15, but if (e - b == 1) is called searchInStrip which calls searchInStrip, which calls searchInStrip, etc.
Method searchInStrip calls split which divide segment set to staircase and other.
The problem lies in that, in procedure searchInStrip list l can contain segments which are out of strip.
For example, we have b=100,e=101 and 120 segments which begins and ends before x=100.
Split creates empty staircase and creates l1=l and calls searchInStrip again.
How can I contact with You?
My preferred mail is borucki.andrzej@gmail.com, other: borucki_andrzej@wp.pl and borneq@wp.pl
Do You can contact with me?