instantiation of polygons with crossing sides

Fixes #6954