Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
This function is adapted from Bernard Abayowas 'readObj' function but is significantly faster, but writes a txt-file derived from obj-file to disk (https://www.mathworks.com/matlabcentral/fileexchange/18957-readobj). It reads vertices, faces, texture and normal information from a specified Obj file, and stores the information in a Matlab structure. This file is designed for faces with 3 vertices (Triangulated mesh). The model should be continuous. Seperated parts should be loaded respectively.
Result can be displayed with accompanying displayObj
Example of usage:
path = 'C:\Users\User\Documents\MATLAB\';
filename = 'object.obj';
[obj,tex] = readObj(filename, path);
displayObj(obj,tex);
Citation pour cette source
Quirin Schmid (2026). read obj files (https://fr.mathworks.com/matlabcentral/fileexchange/134606-read-obj-files), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
Inspiré par : readObj
Informations générales
- Version 1.0.3 (3,21 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.3 | changed indexing of table |
||
| 1.0.2 | changed face indexing |
||
| 1.0.1 | solved path problems |
||
| 1.0.0 |
