STL File Reader
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.
Cita come
Eric Johnson (2024). STL File Reader (https://www.mathworks.com/matlabcentral/fileexchange/22409-stl-file-reader), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Data Import and Analysis >
- Physical Modeling > Simscape Multibody > Model Import >
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > STL (STereoLithography) >
Tag
Riconoscimenti
Ispirato: User-controlled 3D Airplane Animation -- Set of examples, stlTools, Brain Projections, Binary STL file reader, Polarizability_GUI5
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.