compileMEX.m 299 B

1234567891011
  1. %% Compile the wrapper for readOBJ
  2. mex readOBJ_mex.cpp ...
  3. -I../../include ...
  4. -I/opt/local/include/eigen3 %% Change this path to point to your copy of Eigen
  5. %% Load an OBJ mesh
  6. [V,F] = readOBJ_mex('../shared/bumpy-cube.obj');
  7. %% Plot the mesh
  8. trimesh(F,V(:,1),V(:,2),V(:,3));
  9. axis vis3d;