WLJS LogoWLJS Notebook

CanonicalizePolygon

CanonicalizePolygon[poly] gives a canonical representation of the polygon poly with shared coordinates and with inner and outer boundaries.

CanonicalizePolygon[poly, "filter"] gives a canonical representation with the specified filter.

Examples

Canonicalize a polygon:

CanonicalizePolygon[Polygon[{{0, 0}, {1, 0}, {1, 1}, {0, 1}}]]

Please visit the official Wolfram Language Reference for more details.

On this page