tet_mesh_refine_test, a C++ code which calls tet_mesh_refine(), which refines every tetrahedron in a tet mesh, replacing each tetrahedron by 8 subtetrahedrons.
The computer code and data files described and made available on this web page are distributed under the MIT license
tet_mesh_refine, a C++ code which refines a tet mesh;
CUBE_ORDER4 defines an order 4 test mesh on a cube: