File size: 299 Bytes
5b89cb9 | 1 2 3 4 5 6 7 8 9 10 11 12 | %% 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/bumpy-cube.obj');
%% Plot the mesh
trimesh(F,V(:,1),V(:,2),V(:,3));
axis vis3d;
|