You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
In addition to the STLREAD import function, this submission also includes a small demo that loads an STL model of a human femur bone.
FV = STLREAD(FILENAME) imports triangular faces from the binary STL file
indicated by FILENAME, and returns the patch struct FV, with fields 'faces'
and 'vertices'.
[F,V] = STLREAD(FILENAME) returns the faces F and vertices V separately.
[F,V,N] = STLREAD(FILENAME) also returns the face normal vectors.
The faces and vertices are arranged in the format used by the PATCH plot
object.
Cite As
Eric Johnson (2026). STL File Reader (https://uk.mathworks.com/matlabcentral/fileexchange/22409-stl-file-reader), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: User-controlled 3D Airplane Animation -- Set of examples, stlTools, Brain Projections, Binary STL file reader, Polarizability_GUI5
General Information
- Version 1.2.0.0 (1.6 MB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
