I have compiled another GH User Object this week. Lots of times I have been in need of a rectangular pattern on a provided surface but in cases when the division domain was not normal( for example when using attractors with point clouds). I wrote a simple VB.net routine to calculate the rectangular polylines, the centroids and the surfaces for a given array of points. There are several ways to that in grasshopper but I believe this component is quicker and more compact..
Download here as usual..