WindingPolygon
✖
WindingPolygon
gives a polygon representing all points for which the closed contour p1,p2,…,pn,p1 winds around at least once.
gives a polygon from the closed contours p11,p12,… and p21,p22,….
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.


List of all options

Examples
open allclose allBasic Examples (2)Summary of the most common use cases

https://wolfram.com/xid/0b0l38rewmi-p3b1a8


https://wolfram.com/xid/0b0l38rewmi-it4riy

Construct a polygon from a self-intersecting contour:

https://wolfram.com/xid/0b0l38rewmi-ihjkg4


https://wolfram.com/xid/0b0l38rewmi-qdev09

Scope (14)Survey of the scope of standard use cases
Basic Uses (5)
Define a two-dimensional polygon:

https://wolfram.com/xid/0b0l38rewmi-6wznbi


https://wolfram.com/xid/0b0l38rewmi-k7h2jz


https://wolfram.com/xid/0b0l38rewmi-d5b3jx


https://wolfram.com/xid/0b0l38rewmi-zl0rxy


https://wolfram.com/xid/0b0l38rewmi-tto0a3

Construct polygons from self-intersecting contours:

https://wolfram.com/xid/0b0l38rewmi-tgsruf


https://wolfram.com/xid/0b0l38rewmi-5pmab3


https://wolfram.com/xid/0b0l38rewmi-z2w99s


https://wolfram.com/xid/0b0l38rewmi-pageqd

Nonzero Rule (3)

https://wolfram.com/xid/0b0l38rewmi-hkfe8s

https://wolfram.com/xid/0b0l38rewmi-7sdo6l


https://wolfram.com/xid/0b0l38rewmi-nwkw0d

https://wolfram.com/xid/0b0l38rewmi-cz4s4c


https://wolfram.com/xid/0b0l38rewmi-r2012o

EvenOdd Rule (3)

https://wolfram.com/xid/0b0l38rewmi-iq6flg

https://wolfram.com/xid/0b0l38rewmi-u2y9kk


https://wolfram.com/xid/0b0l38rewmi-emp4sz

https://wolfram.com/xid/0b0l38rewmi-mj7qx7


https://wolfram.com/xid/0b0l38rewmi-53u2au

Two Rule (3)

https://wolfram.com/xid/0b0l38rewmi-9p0fmk

https://wolfram.com/xid/0b0l38rewmi-2n139l


https://wolfram.com/xid/0b0l38rewmi-h7cau

https://wolfram.com/xid/0b0l38rewmi-ddzc0m


https://wolfram.com/xid/0b0l38rewmi-ikf7sy

Options (6)Common values & functionality for each option
VertexColors (2)
VertexNormals (1)
Compute normal vectors using the cross-product of edge vectors:

https://wolfram.com/xid/0b0l38rewmi-lx25c

https://wolfram.com/xid/0b0l38rewmi-bpd9f0

A triangle with normals pointing in the direction {1,-1,1}:

https://wolfram.com/xid/0b0l38rewmi-cvwg32

Using different normals will affect shading:

https://wolfram.com/xid/0b0l38rewmi-dxgk6r

VertexTextureCoordinates (3)
Texture mapping with 2D polygons:

https://wolfram.com/xid/0b0l38rewmi-1jlxp

Texture mapping with 3D polygons:

https://wolfram.com/xid/0b0l38rewmi-eg1zja

Repeat a texture by using non-unified texture coordinate values:

https://wolfram.com/xid/0b0l38rewmi-drfwj5

Texture mapping is preceded by VertexColors:

https://wolfram.com/xid/0b0l38rewmi-ew2q5d

Applications (3)Sample problems that can be solved with this function
Basic Applications (1)

https://wolfram.com/xid/0b0l38rewmi-f0eecn

Geometry (1)
Properties & Relations (2)Properties of the function, and connections to other functions
WindingPolygon is in general different than Polygon:

https://wolfram.com/xid/0b0l38rewmi-hf6fz3

https://wolfram.com/xid/0b0l38rewmi-c82bc3

CrossingPolygon is an alternate polygon constructor:

https://wolfram.com/xid/0b0l38rewmi-0h89de

https://wolfram.com/xid/0b0l38rewmi-14smh2

Possible Issues (2)Common pitfalls and unexpected behavior
WindingPolygon always gives full-dimensional components:

https://wolfram.com/xid/0b0l38rewmi-gs2kxl


https://wolfram.com/xid/0b0l38rewmi-xtcaug

The points in WindingPolygon must lie on a plane:

https://wolfram.com/xid/0b0l38rewmi-4o4cqe


Wolfram Research (2019), WindingPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/WindingPolygon.html.
Text
Wolfram Research (2019), WindingPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/WindingPolygon.html.
Wolfram Research (2019), WindingPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/WindingPolygon.html.
CMS
Wolfram Language. 2019. "WindingPolygon." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WindingPolygon.html.
Wolfram Language. 2019. "WindingPolygon." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WindingPolygon.html.
APA
Wolfram Language. (2019). WindingPolygon. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WindingPolygon.html
Wolfram Language. (2019). WindingPolygon. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WindingPolygon.html
BibTeX
@misc{reference.wolfram_2025_windingpolygon, author="Wolfram Research", title="{WindingPolygon}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/WindingPolygon.html}", note=[Accessed: 05-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_windingpolygon, organization={Wolfram Research}, title={WindingPolygon}, year={2019}, url={https://reference.wolfram.com/language/ref/WindingPolygon.html}, note=[Accessed: 05-May-2025
]}