read_binary_stl_file(filename)
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')
Citation pour cette source
Sunil Bhandari (2025). read_binary_stl_file(filename) (https://fr.mathworks.com/matlabcentral/fileexchange/62345-read_binary_stl_file-filename), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > STL (STereoLithography) >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 2.0.0.0 | function to plot large stl file faster is included |
||
| 1.0.0.0 | faster plot function added for plotting larger binary stl files |
