Correct detection and marking of approximately orthogonal, intersecting line segments