A new algorithm for calculating the difference, intersection, exclusive-or or union of arbitrary polygon sets.