stla_io


stla_io, an Octave code which includes routines to read or write the 3D graphics information stored in an ASCII STL (stereolithography) file.

Especially if you are reading large ASCII STL files, you might want to consider the stla_size_fast() and stla_read_fast() routines, provided by Bill Seufzer of NASA Langley. These will run more quickly than the routines stla_size() and stla_read().

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

stla_io is available in a C++ version and a Fortran90 version and a MATLAB version and an Octave version.

Related Data and Programs:

stla, a data directory which contains some examples of ASCII STL files.

stla_display, an Octave code which can read an ASCII STL file and display it on the screen.

stla_io_test

stla_to_tri_surface, an Octave code which reads an ASCII STL file and extracts the surface mesh data as a TRI_SURFACE dataset.

tri_surface_to_stla, an Octave code which reads a TRI_SURFACE dataset and extracts the surface mesh data as an ASCII STL file.

Reference:

  1. 3D Systems, Inc,
    Stereolithography Interface Specification,
    October 1989.

Source Code:


Last revised on 03 July 2023.