triangle_interpolate


triangle_interpolate, an Octave code which demonstrates some simple techniques for interpolating data on a triangle.

In the most common case, the value of a quantity is known at the vertices of a triangle, and a reasonable interpolated value is desired at some point p in the interior of that triangle. This can be done by linear interpolation.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

triangle_interpolate is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

triangle_interpolate_test

fem_basis, an Octave code which can define basis functions for the finite element method (fem) for any degree in an m-dimensional simplex (1d interval, 2d triangle, 3d tetrahedron, and higher dimensional generalizations.)

geometry, an Octave code which performs geometric calculations in 2, 3 and n dimensional space.

toms886, an Octave code which defines the padua points for interpolation in a 2d region, including the rectangle, triangle, and ellipse, by marco caliari, stefano de marchi, marco vianello. this is a version of acm toms algorithm 886.

triangle, an Octave code which can compute properties, including angles, area, centroid, circumcircle, edge lengths, incircle, orientation, orthocenter, and quality, of a triangle in 2d.

triangle_analyze, an Octave code which reads a triangle defined in a file and computes angles, area, centroid, circumcircle, edge lengths, incircle, orientation, orthocenter, and quality.

triangle_fekete_rule, an Octave code which defines Fekete rules for quadrature or interpolation over the interior of a triangle in 2d.

triangle_grid, an Octave code which computes a grid of points over the interior of a triangle in 2d.

triangle_histogram, an Octave code which computes histograms of data on the unit triangle in 2d.

Source Code:


Last revised on 19 April 2023.