Content deleted Content added
Line 13:
- The algorithm can support holes (as counter-clockwise polygons wholly inside their parent polygon), but requires additional algorithms to decide which polygons are holes. Then, merging of polygons can be performed by a variant of the algorithm.
== The Algorithm ==
First, two lists are created where one list contains the vertices of the clipping polygon A and the another list contains the vertices of the subject polygon B.
The list entries are labelled as either inside or outside the other polygon. Various strategies can be used to improve the speed of this labelling, and to avoid needing to proceed further.
|