Weiler–Atherton clipping algorithm: Difference between revisions

Content deleted Content added
Line 2:
It allows clipping of a ''subject polygon'' by an arbitrarily shaped ''clip polygon''. It is generally applicable only in [[2D]].
 
== Draft Description ==
The algorithm requires polygons to be clockwise and not [[reentrant]] (self intersecting). The algorithm can support holes (as counter-clockwise polygons wholly inside their parent polygon), but requires additional algorithms to decide which polygons are holes. Merging of polygons can also be performed by a variant of the algorithm.
Requires polygons to be clockwise and not [[reentrant]] (self intersecting)
 
The algorithm can support holes (as counter-clockwise polygons wholly inside their parent polygon), but requires additional algorithms to decide which polygons are holes. Merging of polygons can also be performed by a variant of the algorithm.
 
Two lists are created from the coordinates of each polygons A and B.