EVENODD
Evenodd, or the even-odd rule, is a rule used to determine which regions of a closed path are considered inside a shape for fill operations in vector graphics and computational geometry. It is especially relevant for paths that self-intersect or contain holes.
The rule is simple: for any point, project a ray to infinity and count how many times
The even-odd rule is commonly contrasted with the nonzero winding rule. The nonzero rule uses the orientation
In practice, many graphics systems and formats use the even-odd rule as one of two fill modes.
Limitations include potential unintuitive results for highly self-intersecting paths and the need to choose a rule