STLA_DISPLAY
Display an ASCII STL 3D Graphics File
STLA_DISPLAY is an executable MATLAB program
which gets the name of an ASCII STL (Stereolithography) file from
the user, reads the 3D graphics information stored in the file,
and displays the structure on the screen.
Related Data and Programs:
BEZIER_SURFACE_DISPLAY
is an executable MATLAB program which
reads two files defining a Bezier surface and displays it
within MATLAB.
IVCON
is an executable C++ program which
can convert graphics information between STLA and other formats.
IVREAD
is an executable FORTRAN90 program which
can convert graphics information between STLA and other formats.
POLYGONAL_SURFACE_DISPLAY
is an executable MATLAB program which
reads two files defining a polygonal surface and displays it
within MATLAB.
STLA
is a data directory
which contains examples of ASCII STL files.
STLA_IO
is a MATLAB library of routines which can read or write an ASCII STL file.
TRI_MESH_DISPLAY
is a MATLAB program which reads data defining a triangular mesh
of a 3D surface and displays it.
TRIANGULATION_DISPLAY_OPEN_GL
is an executable C++ program
which reads files defining a triangulation and displays an image
using Open GL.
Usage:
-
stla_display ( 'stla_file' )
-
reads the information in the ASCII STL file stla_file
and displays it on the screen.
Reference:
-
3D Systems, Inc,
Stereolithography Interface Specification,
October 1989.
Source Code:
-
ch_cap.m
capitalizes a character.
-
ch_eqi.m
case-insensitive comparison of two characters.
-
ch_is_digit.m
is true if a character represents a digit.
-
ch_to_digit.m
converts a character to the digit it represents.
-
s_cat.m
concatenates two strings to make a third string.
-
s_eqi.m
is a case insensitive comparison of two strings for equality.
-
s_escape_tex.m
de-escapes TeX escape sequences.
-
s_len_trim.m
returns the length of a string to the last nonblank.
-
s_to_r8.m
reads an R8 from a string.
-
stla_display.m
gets the name of an ASCII STL file from the user, reads the
file, and displays it on the screen.
-
stla_read.m
reads graphics information from an ASCII StereoLithography file.
-
stla_size.m
determines sizes associated with an STLA file.
-
stla_size_print.m
prints sizes associated with an STLA file.
-
timestamp.m
prints the current YMDHMS date as a time stamp.
-
word_next_read.m
"reads" words from a string, one at a time.
Examples and Tests:
-
block100.stla,
an STLA file (12 faces) that describes a cube of side 100.
-
block100.png,
a PNG image of
the shape when displayed by STLA_DISPLAY.
-
bottle.stla,
an STLA file (1240 faces) that describes a bottle.
-
bottle.png,
a PNG image of
the shape when displayed by STLA_DISPLAY.
-
cube.stla,
a simple STLA file (12 faces) that describes a cube.
-
cube.png,
a PNG image of
the shape when displayed by STLA_DISPLAY.
-
humanoid_tri.stla,
an STLA file (96 faces) that describes a humanoid.
-
humanoid_tri.png,
a PNG image of
the shape when displayed by STLA_DISPLAY.
You can go up one level to
the MATLAB source codes.
Last revised on 17 January 2007.