rect.getRegion added for voronoi region support