Wavefront OBJ toolbox

版本 (203.5 KB) 作者: Dirk-Jan Kroon
Read and Write Wavefront OBJ geometry and MTL files

15.5K 次下载

更新时间 2011/9/9


Read and Write Wavefront OBJ geometry and MTL files.

A Wavefront Geometry Object file is supported by many 3D programs, it looks like:
v 0.000000 2.000000 0.000000
v 0.000000 0.000000 0.000000
v 2.000000 0.000000 0.000000
v 2.000000 2.000000 0.000000
% Vertices Coordinates 4
f 1 2 3 4
% Faces 1

The function read_wobj allow Wavefront object files including material MTL files to be read into a Matlab structure.
The function write_wobj exports a Matlab structure to an OBJ file.

It doesn't matter if the object file contains splines or polygon based geometry, it reads and writes almost all .obj files.

See "help read_wobj" and "help write_wobj"

Comments and bug reports are welcome


Dirk-Jan Kroon (2023). Wavefront OBJ toolbox (https://www.mathworks.com/matlabcentral/fileexchange/27982-wavefront-obj-toolbox), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
Windows macOS Linux
Help CenterMATLAB Answers 中查找有关 Geometry and Mesh 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明

Bug fixes,
- Filename '.mtl' with space now supported
- Blender uses face objects in case of a line

Fixed Nan Bug (Detected by Owens M.A.)

Add file-format help and made the code compatible with all most all possible .obj files.