tetrahedron_slice_display, a MATLAB 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 )where
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
tetrahedron_slice_display is available in a MATLAB version.
geometry, a MATLAB code which performs geometric calculations in 2, 3 and n dimensional space.
tetrahedron_properties, a MATLAB code which computes properties of a tetrahedron whose vertex coordinates are read from a file.
tetrahedron_slice_animate, a MATLAB 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.
tetrahedron_slice_display_test
tetrahedrons, a dataset directory which contains examples of tetrahedrons;