Page 1 of 1

Generate mesh, quadratic interpolation-how does it work?

Posted: Thu Mar 01, 2018 10:32 am
by Calum_G
Hi,
I'm using the generate mesh function of Dplot to create heat maps of my data, and I'm particularly interested in how the quadratic interpolation is filling in the gaps in my data to produce the mesh. It would be very useful for my work to know how Dplot is doing this, can anyone give me an idea of the formula used by the software or a simple example?

Kind regards,

Calum

Posted: Thu Mar 01, 2018 11:14 am
by DPlotAdmin
There's not much to it. For every new point, DPlot finds the closest "Control points" points in the original mesh. It squares the distance in the XY plane from the new point to the closest "Control points" points, then weights the influence of each of those points by the inverse of the square of the distance. (If the new point lies exactly at an input X,Y, then the corresponding Z is used and the other points have no influence.)

Posted: Fri Mar 02, 2018 7:30 am
by Calum_G
Thanks for the quick reply, that should be a great help to me!