tri_surface_to_obj_test, a MATLAB code which calls tri_surface_to_obj(), which reads data from a TRI_SURFACE file describing a triangular mesh of a 3D surface, and convert it to an OBJ file.
The information on this web page is distributed under the MIT license.
tri_surface_to_obj, a MATLAB code which reads a tri_surface dataset and extracts the surface mesh data as an OBJ file.
CUBE is a cube using 8 nodes and 12 triangular faces.
SPHERE is a sphere, using 66 nodes and 119 triangular faces.