Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
bunny.obj
channel.h
compile_mex.m
fixed_vector.h
mesh.h
obj_common.cpp
obj_common.h
obj_read.cpp
test_mex.m
tri.h
vec2.h
vec3.h
vec4.h

README.md

matlab_obj - Jonathan's Matlab obj file reader


Overview

This is just a mex wrapper around a C++ obj file reader. I found that all obj readers on the Mathworks website were really slow, so I wrapped a fast C++ version.

Compilation

Run "compile_mex.m".

Running

Run "test_mex.m" for a usage demo. obj_read(filename) returns a struct with the loaded channels from the obj file (faces, vertices, normals, etc).

Style

Where possible this project follows the Google C++ style conventions:

http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml

You can’t perform that action at this time.