Fix some bugs in bridge detection
There is problem with different angle convention used for infill and for lines. Angles are translated here, but this fix should be only temporary.