Polygons are used in many domains, including graphics to represent general shapes, geometry to represent regions and geography to represent areas. Polygons are simple yet powerful enough to approximate essentially any 2D shape. The Wolfram Language provides comprehensive support for polygon representation, visualization and computation. All the common definitions of polygons can easily be used, and polygons are deeply integrated in the system, including graphics, geometry and geography.
Polygon — polygon or collection of polygons with or without holes
CanonicalizePolygon — convert to a canonical polygon representation
CrossingPolygon — a polygon defined by ray crossing count
WindingPolygon — a polygon defined by winding count
RandomPolygon — generate different classes of random polygons (convex, simple, etc.)
PolygonDecomposition — decompose a polygon into different classes of polygons
Area — give the area of a polygon
Perimeter — give the perimeter of a polygon
RegionMember — test membership or give conditions for membership
RegionDistance — minimum distance from a point to a polygon
MeshCells — vertices, edges and faces of the polyhedron
ConnectedMeshComponents — split a polyhedron into connected components
Region — geometric representation and automatic visualization of polygons
Solve — find curve crossings etc.
"PLY" — import and export polygons