Quad from Grid

This function takes a rectangular grid of points and extracts collections of four points in the order needed to make a four-point surface. Two Boolean allows the user to close the set in the U or V direction.