## surface interpolations

Home > Community > General > surface interpolations

Viewing 3 posts - 1 through 3 (of 3 total)
• Author
Posts
• #12559

Does anyone know if there is a way to do a surface interpolation with an x, y, and z dataset other than the “Natural Neighbor” interpolation? I am wanting to try a polynomial fit with the end result of getting the coefficients for the equation of the resulting surface. Thank you.

#8222

Does anyone know if there is a way to do a surface interpolation with an x, y, and z dataset other than the “Natural Neighbor” interpolation? I am wanting to try a polynomial fit with the end result of getting the coefficients for the equation of the resulting surface. Thank you.

#8903

If you want to calculate the coefficients of a polynomial with 2 dependent variables, you can use the NonLinCurveFit-function.

Example:
The dataset ‘Data’ is a space curve with a x-, y- and z-component.
Model function: y = p0 + p1 * x + p2 * z + p3 * x^2 + p4 * z^2

FPScript code:

``````
NonLinCurveFit("p + p * d. + p * d. + p * d.^2 + p * d.^2", Data.y, {1,1,0,0,0}, , , , , , NLCF_OUTPUT_SOLUTION , , ,[[Data.Y, Data.Z]])
``````

support@weisang.com

Viewing 3 posts - 1 through 3 (of 3 total)
• You must be logged in to reply to this topic.