https://github.com/reproducibilitystamp/NonRigidPuzzles
Tip revision: 8175d678cb5171d5511e73ab96f2a658029a1952 authored by Or Litany on 06 June 2016, 13:10:39 UTC
Tip revision: 8175d67
showshape.m
function showshape(shape,h);
X = [shape.X(:) shape.Y(:) shape.Z(:)]; % Vertices
F = shape.TRIV; % Faces
nv = size(X,1); % # of vertices
nf = size(F,1); % # of faces
if (nargin==1)
h=zeros(nv,1);
end
% viewpoint = [180 -90];
% figure;
trisurf(F, X(:,1), X(:,2), X(:,3), h);
% view(viewpoint);
axis image;
axis off;
shading flat;
lighting phong;
camlight head;
% title('Original shape');
end