Reworked class PolygonCache.