TETRAHEDRON_PROPERTIES
Compute Properties of a Tetrahedron
TETRAHEDRON_PROPERTIES
is a MATLAB program which
computes properties of a tetrahedron.
These properties include:
-
Centroid;
-
Circumsphere (center and radius);
-
Dihedral angles;
-
Edge lengths;
-
Face angles;
-
Face areas;
-
Insphere (center and radius);
-
Quality1: ratio of insphere radius / circumsphere radius;
-
Quality2: ratio of insphere radius / longest edge;
-
Quality3: ratio of volume^(2/3) / sum of squares of edge lengths;
-
Quality4: sine of half the minimum solid angle;
-
Solid angles;
-
Volume;
Usage:
tetrahedron_properties filename
where filename contains the vertex coordinates.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
TETRAHEDRON_PROPERTIES is available in
a C++ version and
a FORTRAN90 version and
a MATLAB version.
Related Data and Programs:
GEOMETRY,
a MATLAB library which
performs geometric calculations in 2, 3 and N dimensional space.
TETRAHEDRON_SLICE_DISPLAY,
a MATLAB program which
determines the intersection between a tetrahedron and a plane and
displays the result.
TETRAHEDRONS,
a dataset directory which
contains examples of tetrahedrons;
TRIANGLE_PROPERTIES,
a MATLAB program which
computes properties of a triangle
whose vertex coordinates are read from a file.
Source Code:
Examples and Tests:
-
tet_cap.txt,
a "cap" tetrahedron.
-
tet_cap_output.txt,
the output file.
-
tet_equilateral.txt,
an equilateral tetrahedron.
-
tet_equilateral_output.txt,
the output file.
-
tet_needle.txt,
a "needle" tetrahedron.
-
tet_needle_output.txt,
the output file.
-
tet_right.txt,
a right tetrahedron.
-
tet_right_output.txt,
the output file.
-
tet_sliver.txt,
a "sliver" tetrahedron.
-
tet_sliver_output.txt,
the output file.
-
tet_spindle.txt,
a "spindle" tetrahedron.
-
tet_spindle_output.txt,
the output file.
-
tet_wedge.txt,
a "wedge" tetrahedron.
-
tet_wedge_output.txt,
the output file.
You can go up one level to
the MATLAB source codes.
Last revised on 08 July 2009.