Former-commit-id: c8bd92ff256b77811e550991981b8e983f998d42
@@ -1,3 +1,11 @@
-mex readOBJ.cpp ...
+%% Compile the wrapper for readOBJ
+mex readOBJ_mex.cpp ...
-I../../include ...
-I/opt/local/include/eigen3 %% Change this path to point to your copy of Eigen
+
+%% Load an OBJ mesh
+[V,F] = readOBJ_mex('../shared/cube.obj');
+%% Plot the mesh
+trimesh(F,V(:,1),V(:,2),V(:,3));
+axis vis3d;