tri_surface_to_obj, a MATLAB code which reads data from a TRI_SURFACE file describing a triangular mesh of a 3D surface, and converts it to an OBJ file.

A TRI_SURFACE or triangulated mesh surface, is described by a pair of arrays:

An OBJ file is format for storing a description of the surface of a 3D object, composed of triangles or higher degree polygons.


tri_surface_to_obj ( 'node_file', 'element_file', 'obj_file' )


The computer code and data files described and made available on this web page are distributed under the MIT license


tri_surface_to_obj is available in a MATLAB version.

Related Data and Programs:

obj, a data directory which contains a description and examples of obj files.

obj_display, a MATLAB code which reads an obj file and displays it.

obj_io, a MATLAB code which reads or writes an obj file.

obj_to_tri_surface, a MATLAB code which reads an obj file, and extracts the surface mesh data as a tri_surface dataset.

tri_surface, a data directory which contains examples of tri_surface files.

tri_surface_display, a MATLAB code which displays a tri_surface.

tri_surface_io, a MATLAB code which reads and writes the 3d graphics information in a tri_surface file;


tri_surface_to_stla, a MATLAB code which converts tri_surface data to data suitable for storage as an ascii stl file.

Source Code:

Last revised on 04 April 2019.