Read and Write TRI_SURFACE 3D Graphics Files

TRI_SURFACE_IO is a FORTRAN90 library which reads or writes the 3D graphics information stored in a pair of files that represent a TRI_SURFACE, that is, an object whose surface is represented by 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.

TET_MESH_BOUNDARY, a FORTRAN90 program which returns the nodes and faces of the boundary of a tetrahedral mesh, which themselves form a 3D triangular mesh or "TRI_SURFACE".

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 FORTRAN90 source codes.

Last revised on 05 December 2010.