-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfigure_wire.m
46 lines (36 loc) · 832 Bytes
/
figure_wire.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
function figure_wire(surf, Ecolor, Fcolor);
%figure_wire(surf, Ecolor, Fcolor);
%
% The function colors mesh faces and edges
%
% surf : surface mesh
% Ecolor: edge color
% Fcolor: face color
%
% For instance, we can have Ecolor=[0.8 0.8 0.8]
%
% (C) 2008 Moo K. Chung
% Department of Biostatisics and Medical Informatics
% University of Wisconsin, Madison
%
% 2008 created
% 2013 Sept. 5 nargin added
%surf= reducepatch(surf,0.2);
if nargin <3
Fcolor='w';
Ecolor='k';
end
background='white';
whitebg(gcf,background);
newsurf.vertices=surf.vertices;
newsurf.faces=surf.faces;
p=patch(newsurf);
set(p,'FaceColor',Fcolor,'EdgeColor',Ecolor);
daspect([1 1 1]);
axis tight
%camlight;
%set(gcf,'Color',background,'InvertHardcopy','off');
%lighting gouraud
%material shiny;
%shading interp;