Regularize polygons before finding enclosing outline