https://github.com/ruqihuang/AdjointFmaps
Revision 702a3902f859cde5970deb97200347502ecb181a authored by ruqihuang on 24 July 2017, 21:09:41 UTC, committed by ruqihuang on 24 July 2017, 21:09:41 UTC
1 parent 6812206
Tip revision: 702a3902f859cde5970deb97200347502ecb181a authored by ruqihuang on 24 July 2017, 21:09:41 UTC
modify Change_of_basis_F9.m
modify Change_of_basis_F9.m
Tip revision: 702a390
read_off_shape.m
function shape = read_off(offfullname)
fid = fopen(offfullname,'rt');
off = textscan(fid, '%s', 1);
nv = textscan(fid, '%d', 1);
nv = nv{1};
nt = textscan(fid, '%d', 1);
nt = nt{1};
tmp = textscan(fid, '%d', 1);
verts = textscan(fid, '%f %f %f', nv);
shape.surface.X = verts{1};
shape.surface.Y = verts{2};
shape.surface.Z = verts{3};
tri = textscan(fid, '%d %d %d %d', nt);
tri = [tri{2} tri{3} tri{4}];
tri = tri+1;
shape.surface.TRIV = double(tri);
shape.surface.nv = size(shape.surface.X,1);
fclose(fid);
end
Computing file changes ...