tetrahedron_slice_display, an Octave code which displays the intersection of a tetrahedron with a plane.

The intersection of a plane and a tetrahedron is a convex planar polygon which is bounded by 0 to 4 points. The possibilities are:

Given the data, the program displays a wireframe image of the tetrahedron, the points of intersection, and the convex polygon.

The user defines the tetrahedron by giving a 3x4 vertex array T containing the XYZ coordinates of the vertices.

The user defines the plane using the normal form. That is, the user gives a single point P which lies on the plane, and a vector NORMAL which defines the direction normal to the plane.


tetrahedron_slice_display ( p, normal, t )


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


tetrahedron_slice_display is available in a MATLAB version and an Octave version.

Related Data and Programs:


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

tetrahedron_slice_animate, an Octave code which is given a tetrahedron and a vector, and displays an evenly spaced sequence of planes that intersect the tetrahedron and are normal to the vector.

tetrahedrons, a dataset directory which contains examples of tetrahedrons;

Source Code:

Last revised on 08 May 2023.