Started implementing polygon partitioning