TET_MESH_DISPLAY, a MATLAB program which reads data defining a tet mesh and displays a wireframe plot of the nodes and edges, and a solid plot of selected tetrahedrons.
The tet mesh is defined by a node file containing the coordinates of nodes, and an element file containing lists of node indices that make up each tetrahedron.
The tet mesh may be either linear (defined by 4 nodes) or quadratic (defined by 10 nodes).
Note that, for the 10 node case, we assume that the element file lists the node indices in the following order:
P1 P2 P3 P4 P12 P13 P14 P23 P24 P34Here "P14" is meant to indicate the midside node between nodes 1 and 4. There are many possible conventions for ordering the nodes, and if this particular convention is not followed, the display of 10 node tetrahedrons will be garbled.
The nodes and edges of all tetrahedrons will be displayed automatically.
The input argument SOLID can be used to specify the indices of tetrahedrons that are to be displayed as solids. Specifying a single nonzero index will highlight the corresponding element. If SOLID is not supplied as an argument, it will be prompted for, and can be given as a MATLAB expression, such as '[]', '1', '1:2:9', or '[3,7,8]'.
tet_mesh_display ( 'prefix', solid )where
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
TET_MESH_DISPLAY is available in a MATLAB version.
BALL_AND_STICK_DISPLAY, a MATLAB program which demonstrates the creation of a 3D "ball and stick" image;
BEZIER_SURFACE_DISPLAY, a MATLAB program which reads two files defining a Bezier surface and displays it within MATLAB.
CVT_TET_MESH, a FORTRAN90 program which uses CVT methods to compute a tet mesh in a 3D region.
FEM_BASIS_T6_DISPLAY, a MATLAB program which reads a quadratic triangle mesh and displays any associated basis function.
MESH_DISPLAY, a MATLAB program which reads data defining a polygonal mesh and displays it, with optional numbering.
MPAS_GRID_DISPLAY, a directory of MATLAB programs which can read an MPAS NETCDF grid file and display the primary polygonal mesh or the dual triangular mesh.
OBJ_DISPLAY, a MATLAB program which reads an OBJ file defining a 3D object and displays it within MATLAB.
POLYGONAL_SURFACE_DISPLAY,, a MATLAB program which reads two files defining a polygonal surface and displays it within MATLAB.
QUAD_SURFACE_DISPLAY, a MATLAB program which reads files defining a 3D quadrilateral mesh surface and displays it within MATLAB.
STLA_DISPLAY, a MATLAB program which reads an ASCII STL file defining a 3D object and displays it within MATLAB.
TEST_TET_MESH, a FORTRAN90 library which defines a few test regions for the generation of a tet mesh.
TET_MESH, a MATLAB library which carries out computations with a tet mesh.
TET_MESH_DISPLAY_OPENGL, a C++ program which reads a tet mesh and displays the nodes and edges using OpenGL.
TET_MESH_ORDER4, a data directory which contains a description and examples of a tet mesh using order 4 elements.
TET_MESH_ORDER10, a data directory which contains a description and examples of a tet mesh using order 10 elements.
TETRAHEDRON_SLICE_DISPLAY, a MATLAB program which determines the intersection between a tetrahedron and a plane and displays the result.
TRI_SURFACE_DISPLAY, a MATLAB program which reads data defining a triangular mesh of a 3D surface and displays it.
TRIANGULATION_ORDER1_DISPLAY, a MATLAB program which reads files defining a piecewise constant triangulation of data, and displays a corresponding 3D surface.