下面给出了读取文件的下载链接,以及说明。
下载链接:
Wavefront OBJ toolbox - File Exchange - MATLAB Central
函数说明:
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
下载后的文件:
将这些文件所在的文件夹加入matlab的路径。
函数调用格式如下:
- read_wobj(fullfilename)
- write_wobj(OBJ,fullfilename)
若要调用.obj文件,语句例子:r=read_wobj('file.obj');