replaceEdge
Replaces an edge of the polygon.
Parameters
index
the index of the edge to replace (edge i connects vertices i and i+1)
newEdge
the new edge
Replaces an edge of the polygon.
the index of the edge to replace (edge i connects vertices i and i+1)
the new edge