Files
igl/tutorial/603_MEX/compileMEX.m
T
2014-07-01 22:43:54 -04:00

12 lines
299 B
Matlab
Executable File

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