closePolys function

Close a PolySet