polygon-edit: refactor PolygonList.getOuterLines & PolygonList.getDots