Read and Write TRI_SURFACE 3D Graphics Files

TRI_SURFACE_IO is a C++ library which reads or writes the 3D graphics information stored in a pair of files that represent a TRI_SURFACE object, that is, a surface described as a collection of triangles.


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


TRI_SURFACE_IO is available in a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

PLY_TO_TRI_SURFACE, a MATLAB program which extracts data from a PLY file and writes it to a TRI_SURFACE file.

TRI_SURFACE, a data directory which has some examples of TRI_SURFACE files.

TRI_SURFACE_DISPLAY, a MATLAB program which reads a TRI_SURFACE 3D graphics file and displays it in a 3D window.

TRI_SURFACE_DISPLAY_OPENGL, a C++ program which displays the 3D graphics information in a TRI_SURFACE file using OpenGL.

TRI_SURFACE_TO_PLY, a MATLAB program which extracts data from a TRI_SURFACE file and writes it to a PLY file.

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the C++ source codes.

Last revised on 22 February 2009.