# WindingPolygon

WindingPolygon[{p1,p2,,pn}]

gives a polygon representing all points for which the closed contour p1,p2,,pn,p1 winds around at least once.

WindingPolygon[{{p11,p12,},{p21,p22,},}]

gives a polygon from the closed contours p11,p12, and p21,p22,.

WindingPolygon[,"wrule"]

uses the specified winding rule "wrule" to define the polygon.

# Details and Options  • WindingPolygon is also known as winding filling rule.
• WindingPolygon is commonly used to define a polygon from self-intersecting closed curves.
• A point p is in the polygon if the number of revolutions of the closed contour around p is not zero. The number of revolutions is given by WindingCount.
• The number of winding counts are given below for each region:
• • Different winding rules "wrule" give different polygons. Possible winding rules include:
• • WindingPolygon[{p1,p2,}] is equivalent to WindingPolygon[{p1,p2,},"NonZeroRule"].
• The points pi can have any embedding dimension, but must all lie in a plane and have the same embedding dimension.
• WindingPolygon takes the same options as Polygon.

# Examples

open all close all

## Basic Examples(2)

Define a polygon:

 In:= Out= In:= Out= Construct a polygon from a self-intersecting contour:

 In:= Out= Its area:

 In:= Out= ## Possible Issues(2)

Introduced in 2019
(12.0)