SMS:Linear Interpolation: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
<math>Ax + By + Cz + D = 0 \ </math>
<math>Ax + By + Cz + D = 0 \ </math>
</blockquote>
</blockquote>
where ''A'', ''B'', and ''C''>, and ''D'' are computed from the coordinates of the three  vertices ''(x<sub>1</sub>,y<sub>1</sub>,z<sub>1</sub>)'', ''(x<sub>2</sub>,y<sub>2</sub>,z<sub>2</sub>)'', and ''(x<sub>3</sub>,y<sub>3</sub>,z<sub>3</sub>)'':
:where ''A'', ''B'', and ''C''>, and ''D'' are computed from the coordinates of the three  vertices ''(x<sub>1</sub>,y<sub>1</sub>,z<sub>1</sub>)'', ''(x<sub>2</sub>,y<sub>2</sub>,z<sub>2</sub>)'', and ''(x<sub>3</sub>,y<sub>3</sub>,z<sub>3</sub>)'':
<blockquote>
<blockquote>
<math>A = y_1(z_2 - z_3)  +  y_2 (z_3 -  z_1) +  y_3(z_1 - z_2^{})</math>
<math>A = y_1(z_2 - z_3)  +  y_2 (z_3 -  z_1) +  y_3(z_1 - z_2^{})</math>
Line 21: Line 21:
<math>z = f(x,y) = - \frac {A}{C}x - \frac {B}{C}y - \frac {D}{C}</math>
<math>z = f(x,y) = - \frac {A}{C}x - \frac {B}{C}y - \frac {D}{C}</math>
</blockquote>
</blockquote>
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 [[SMS:Scatter_Interpolation#Interpolation_Dialog|''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 [[SMS:Scatter_Interpolation#Interpolation_Dialog|''Interpolation Options'']] dialog.

Revision as of 14:45, 26 October 2017

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 A, B, and C>, and D are computed from the coordinates of the three vertices (x1,y1,z1), (x2,y2,z2), and (x3,y3,z3):

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.

Related Topics