Add level to test.
Modify intersection algorithm to handle cutting segments tangent to polygon without cutting it.
Add levels to debug.
Handle another case. The algorithm will be modified soon and split in several methods instead.