Generate a regular mesh from irregular data using interpolation. The function is defined by y
= f (x,y,z). The interpolation points are all xi.The interpolation method can be
"nearest"or"linear". If method is omitted it defaults to"linear".