SMS:Linear Interpolation: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 23: Line 23:
which is the form of the plane equation used to compute the elevation at any  point on the triangle.
which is the form of the plane equation used to compute the elevation at any  point on the triangle.


Since a TIN only covers the convex  hull of a scatter point set, extrapolation beyond the convex hull is not  possible with the linear interpolation scheme. Any points outside the convex  hull of the scatter point set are assigned the default extrapolation value  entered at the bottom of the Interpolation Options dialog.
Since a TIN only covers the convex  hull of a scatter point set, extrapolation beyond the convex hull is not  possible with the linear interpolation scheme. Any points outside the convex  hull of the scatter point set are assigned the default extrapolation value  entered at the bottom of the ''Interpolation Options'' dialog.





Revision as of 15:43, 3 April 2013

If the linear interpolation scheme is selected, the 2D scatter points are first triangulated to form a temporary TIN. If the surface is assumed to vary linearly across each triangle, the TIN describes a piecewise linear surface which interpolates the scatter points. The equation of the plane defined by the three vertices of a triangle is as follows:

where , , and , and are computed from the coordinates of the three vertices , , & :


A = y1(z2 - z3) + y2(z3 - z1) + y3(z1 - z2)
B = z1(x2 - x3) + z2(x3 - x1) + z3(x1 - x2)
C = x1(y2 - y3) + x2(y3 - y1) + x3(y1 - y2)
D = -Ax1 - By1 - Cz1


The plane equation can also be written as:



which is the form of the plane equation used to compute the elevation at any point on the triangle.

Since a TIN only covers the convex hull of a scatter point set, extrapolation beyond the convex hull is not possible with the linear interpolation scheme. Any points outside the convex hull of the scatter point set are assigned the default extrapolation value entered at the bottom of the Interpolation Options dialog.


Return to Scatter Interpolation