Fix edge glitch. Add an assert just to be safe (pretty much asserts that the vertices are either in clockwise or counter-clockwise order, and not mixed up).