Weiler-Atherton algorithm for polygon clipping