Fixed edge repainting.

Still need to fix the lines drawn between verticies that are parallel to
one another.