STLA_IO
Read and Write Routines
ASCII STL 3D Graphics Files
STLA_IO
is a FORTRAN90 library which
reads or writes the 3D graphics information
stored in an ASCII STL (stereolithography) file.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
STLA_IO is available in
a C++ version and
a FORTRAN90 version and
a MATLAB version.
Related Data and Programs:
IVCON,
a C++ program which
can convert graphics information between ASCII STL and other formats.
IVREAD,
a FORTRAN90 program which
can convert graphics information between ASCII STL and other formats.
STLA,
a data directory which
contains some examples of STLA 3D graphics files.
STLA_DISPLAY,
a MATLAB program which
can read an ASCII STL file and display it on the screen.
Reference:
-
3D Systems, Inc,
Stereolithography Interface Specification,
October 1989.
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.
-
GET_UNIT returns a free FORTRAN unit number.
-
R8VEC_CROSS_3D computes the cross product of two vectors in 3D.
-
S_CAT concatenates two strings to make a third string.
-
S_EQI is a case insensitive comparison of two strings for equality.
-
S_TO_R8 reads an R8 from a string.
-
STLA_CHECK checks an ASCII StereoLithography file.
-
STLA_FACE_NODE_PRINT prints the node indices for each face.
-
STLA_FACE_NORMAL_COMPUTE computes normal vectors for an ASCII StereoLithography file.
-
STLA_FACE_NORMAL_PRINT prints the normal vectors.
-
STLA_NODE_XYZ_PRINT prints the node coordinates.
-
STLA_READ reads graphics information from an ASCII StereoLithography file.
-
STLA_SIZE determines sizes associated with an STLA file.
-
STLA_SIZE_PRINT prints sizes associated with an STLA file.
-
STLA_WRITE writes graphics information to an ASCII StereoLithography file.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
WORD_NEXT_READ "reads" words from a string, one at a time.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 15 February 2007.