Appearance
function cleanPolygon(p, tol?): Polygon;
Remove consecutive duplicate vertices; return [] if the result has no area.
p
Polygon
undefined
tol
number
1e-9