I'm confused.
In the fifth figure, "Adjusting the intersecting vertices of intermediate segments to prevent overlap", you can see that the vertex adjustments cause the angle and thickness of the line segments to change. This looks wrong to me — shouldn't the angle and thickness be unaffected? Shouldn't the red boundaries along the tops and bottoms of the line segments be colinear with the dashed grey boundaries?