Matlab:读取obj文件

使用Matlab函数$[V, T]=readobj(filename)$ 读取obj文件,返回格点集$V$和面集$F$:

  • 使用函数fopen, frewind, fclose, fgets, strtok, sscanf
  • obj文件格式参考https://en.wikipedia.org/wiki/Wavefront_.obj_file
  • 使用trimesh或者trisurf展示三角网格