Browse Source

* cleanup on MEX tutorial example

Former-commit-id: c8bd92ff256b77811e550991981b8e983f998d42
Daniele Panozzo 11 years ago
parent
commit
12fce281cc
2 changed files with 9 additions and 1 deletions
  1. 9 1
      tutorial/603_MEX/compileMEX.m
  2. 0 0
      tutorial/603_MEX/readOBJ_mex.cpp

+ 9 - 1
tutorial/603_MEX/compileMEX.m

@@ -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;

+ 0 - 0
tutorial/603_MEX/readOBJ.cpp → tutorial/603_MEX/readOBJ_mex.cpp