Files
igl/tutorial/603_MEX/compileMEX.m
Alexander Sulfrian 97fb89c955 Source code should not be marked as executable (#2231) [ci skip]
The executable file flag should only be used for binaries and scripts
with a shebang specifying the interpreter of the script.
2023-08-18 11:04:36 -04:00

12 lines
299 B
Matlab

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