tri_surface_to_stla


tri_surface_to_stla, an Octave code which reads data from a TRI_SURFACE file describing a triangular mesh of a 3D surface, and converts it to an ASCII STL file.

A TRI_SURFACE or triangulated mesh surface, is described by a pair of arrays:

An ASCII STL file contains a description of the surface of a solid that has been decomposed into triangles. The vertices of the triangles should be listed in counterclockwise order, as viewed from outside the surface. A normal vector for the triangle may also be listed.

Usage:

tri_surface_to_stla ( 'node_filename', 'element_filename', 'stla_filename' )
where

Licensing:

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

Languages:

tri_surface_to_stla is available in a MATLAB version and an Octave version.

Related Data and Programs:

tri_surface_to_stla_test

obj_to_tri_surface, an Octave code which reads an OBJ file, and extracts the surface mesh data as a TRI_SURFACE dataset.

stla, a data directory which contains a description and examples of STLA files.

stla_display, an Octave code which reads an ASCII STL file and displays it.

stla_io, an Octave code which reads or writes a PLY file.

stla_to_tri_surface, an Octave code which converts ASCII STL graphics data to TRI_SURFACE data.

tri_surface, a data directory which contains examples of TRI_SURFACE files.

tri_surface_display, an Octave code which displays a TRI_SURFACE dataset.

tri_surface_io, an Octave code which reads and writes the 3d graphics information in a TRI_SURFACE file;

tri_surface_to_obj, an Octave code which reads a TRI_SURFACE dataset and extracts the surface mesh data as an OBJ file.

Reference:

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

Source Code:


Last revised on 04 July 2023.