read_binary_stl_file(filename)
Version 2.0.0.0 (1.76 KB) by
Sunil Bhandari
a very fast binary stl file reader.
reads stl files in very short time. does not read color.
reads binary file and returns triangle nodes as n*3 matrix , vertices as 3n*3 matrix and normals as n*3 matrix
triangles can be plotted using trisurf or trimesh
trisurf(tri,v(:,1),v(:,2),v(:,3),'EdgeColor','red','FaceColor','green')
Cite As
Sunil Bhandari (2024). read_binary_stl_file(filename) (https://www.mathworks.com/matlabcentral/fileexchange/62345-read_binary_stl_file-filename), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > STL (STereoLithography) >
Find more on STL (STereoLithography) in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.