tet_mesh_display, a MATLAB code 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 code which demonstrates the creation of a 3d "ball and stick" image;
bezier_surface_display, a MATLAB code which reads two files defining a bezier surface and displays it within MATLAB.
fem_basis_t6_display, a MATLAB code which reads a quadratic triangle mesh and displays any associated basis function.
mesh_display, a MATLAB code which reads data defining a polygonal mesh and displays it, with optional numbering.
obj_display, a MATLAB code which reads an obj file defining a 3d object and displays it within MATLAB.
polygonal_surface_display,, a MATLAB code which reads two files defining a polygonal surface and displays it within MATLAB.
quad_surface_display, a MATLAB code which reads files defining a 3d quadrilateral mesh surface and displays it within MATLAB.
stla_display, a MATLAB code which reads an ascii stl file defining a 3d object and displays it within MATLAB.
tet_mesh, a MATLAB code which carries out computations with a tet mesh.
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 code which determines the intersection between a tetrahedron and a plane and displays the result.
tri_surface_display, a MATLAB code which reads data defining a triangular mesh of a 3d surface and displays it.
triangulation_order1_display, a MATLAB code which reads files defining a piecewise constant triangulation of data, and displays a corresponding 3d surface.