TRI_SURFACE_IO
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.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
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:
-
CH_CAP capitalizes a single character.
-
CH_EQI is a case insensitive comparison of two characters for equality.
-
CH_TO_DIGIT returns the integer value of a base 10 digit.
-
FILE_COLUMN_COUNT counts the number of columns in the first line of a file.
-
FILE_ROW_COUNT counts the number of row records in a file.
-
GET_UNIT returns a free FORTRAN unit number.
-
I4MAT_DATA_READ reads data from an I4MAT file.
-
I4MAT_HEADER_READ reads the header from an I4MAT.
-
I4MAT_TRANSPOSE_PRINT prints an I4MAT, transposed.
-
I4MAT_TRANSPOSE_PRINT_SOME prints some of the transpose of an I4MAT.
-
I4MAT_WRITE writes an I4MAT file.
-
R8MAT_DATA_READ reads data from an R8MAT file.
-
R8MAT_HEADER_READ reads the header from an R8MAT file.
-
R8MAT_TRANSPOSE_PRINT prints an R8MAT, transposed.
-
R8MAT_TRANSPOSE_PRINT_SOME prints some of an R8MAT transposed.
-
R8MAT_WRITE writes an R8MAT file.
-
S_BLANK_DELETE removes blanks from a string, left justifying the remainder.
-
S_TO_I4 reads an I4 from a string.
-
S_TO_I4VEC reads an I4VEC from a string.
-
S_TO_R8 reads an R8 from a string.
-
S_TO_R8VEC reads an R8VEC from a string.
-
S_WORD_COUNT counts the number of "words" in a string.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
TRI_SURFACE_PRINT prints graphics information from a pair of TRI_SURFACE files.
-
TRI_SURFACE_READ reads graphics information from a pair of TRI_SURFACE files.
-
TRI_SURFACE_SIZE determines the size of a TRI_SURFACE object.
-
TRI_SURFACE_SIZE_PRINT prints sizes associated with a TRI_SURFACE file.
-
TRI_SURFACE_WRITE writes graphics information to a pair of TRI_SURFACE files.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 05 December 2010.