STL File Reader(Both ASCII & BIN, auto-detection)

version 1.0.0 (3.44 KB) by Wang Jack
Imports facet from stereolithography (STL) file into MATLAB.


Updated 22 Jul 2020

View License

The main.m file is a demo
hole.stl Is an ASCII file, and holeb.stl is a binary file
I written two detection modes, which can modify by yourself
The contains function requires version r2016b. A lower version can try to use strfind instead

Each row is a patch information (including vertex and normal vector)

Cite As

Wang Jack (2022). STL File Reader(Both ASCII & BIN, auto-detection) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with R2016b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!