STLA_IO
Read and Write Routines
STL ASCII 3D Graphics Files
STLA_IO
is a C++ library which
reads and 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 STLA and other formats.
IVREAD,
a FORTRAN90 program which
can convert graphics information between STLA and other formats.
STLA,
a data directory which
contains some examples of STLA files.
STLA_DISPLAY,
a MATLAB program which
can read an STLA 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 true if two characters are equal, disregarding case.
-
CH_TO_DIGIT returns the integer value of a base 10 digit.
-
I4_MIN returns the smaller of two integers.
-
R8_MAX returns the maximum of two R8's.
-
R8_MIN returns the minimum of two R8's.
-
R8VEC_CROSS_3D computes the cross product of two R8VEC's in 3D.
-
R8VEC_DOT computes the dot product of two R8VEC's.
-
R8VEC_LENGTH returns the Euclidean length of the vector X
-
S_CAT concatenates two strings to make a third string.
-
S_EQI reports whether two strings are equal, ignoring case.
-
S_LEN_TRIM returns the length of a string to the last nonblank.
-
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_OFFSET_GET gets the STLA offset.
-
STLA_OFFSET_SET sets the STLA offset.
-
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 an ASCII STL (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 C++ source codes.
Last revised on 15 February 2007.