In this next code block we repair the T-junction. This is done by
simply inserting a new vertex in the polygon immediately after the first
vertex in the edge we are testing (v1). That is, we must insert it at
the position in the vertex array currently occupied by the second vertex
v2. This will nudge all vertices in the winding order up by one position
in the array, creating the current edge between v1 and the new vertex we
have just inserted. It also adds a new edge to the polygon between the
new vertex and what used to be the second vertex in the current
edge.