Weiler–Atherton clipping algorithm: Difference between revisions

Content deleted Content added
No edit summary
mNo edit summary
Line 10:
Requires polygons to be clockwise and not re-enterant (self intersecting)
 
The algorithm can support holes (as counter-clockwise polygons wholly inside thertheir 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.