While @martinsiegrist is totally on point, other cases may require/are more easily solved using this native RhinoCommon method (i.e. which is not yet exposed in native Grasshopper components):
Edit: Just had a look at the file and think I’d use something like this:
I’m not sure if there’s a native version (e.g. there is Surface From Points for making surfaces), but I certainly use my meshGrid Python a whole lot at work. It would probably be useful with a fully native component.