Update PolyGrid.m