Defining self-intersecting polygons