Added ability to create piecewise curves that are polygon edges.