TETRAHEDRON_SLICE_DISPLAY
Display Tetrahedron/Plane Intersection


TETRAHEDRON_SLICE_DISPLAY, a MATLAB program 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.

Usage:

tetrahedron_slice_display ( p, normal, t )
where

Licensing:

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

Languages:

TETRAHEDRON_SLICE_DISPLAY is available in a MATLAB version.

Related Data and Programs:

GEOMETRY, a MATLAB library which performs geometric calculations in 2, 3 and N dimensional space.

TETRAHEDRON_PROPERTIES, a MATLAB program which computes properties of a tetrahedron whose vertex coordinates are read from a file.

TETRAHEDRON_SLICE_ANIMATE, a MATLAB program 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.

tetrahedron_slice_display_test

TETRAHEDRONS, a dataset directory which contains examples of tetrahedrons;

Source Code:


Last revised on 04 April 2019.