Revised test polygon generator.
It can take in many segments, in various arrangements and orders (i.e. it can handle the segment being defined A->B instead of B->A).
Will need more modification to work with code, but for now, pretty fricken cool.