Minor polish.
Use a simple [x, y] array for vertices.