Mercurial > octave-nkf
comparison scripts/geometry/trimesh.m @ 10549:95c3e38098bf
Untabify .m scripts
author | Rik <code@nomad.inbox5.com> |
---|---|
date | Fri, 23 Apr 2010 11:28:50 -0700 |
parents | 16f53d29049f |
children | be55736a0783 |
comparison
equal
deleted
inserted
replaced
10548:479536c5bb10 | 10549:95c3e38098bf |
---|---|
39 triplot (tri, x, y, z, varargin{:}); | 39 triplot (tri, x, y, z, varargin{:}); |
40 else | 40 else |
41 newplot (); | 41 newplot (); |
42 if (nargout > 0) | 42 if (nargout > 0) |
43 h = patch ("Vertices", [x(:), y(:), z(:)], "Faces", tri, | 43 h = patch ("Vertices", [x(:), y(:), z(:)], "Faces", tri, |
44 "FaceColor", "none", "EdgeColor", __next_line_color__(), | 44 "FaceColor", "none", "EdgeColor", __next_line_color__(), |
45 varargin{:}); | 45 varargin{:}); |
46 else | 46 else |
47 patch ("Vertices", [x(:), y(:), z(:)], "Faces", tri, | 47 patch ("Vertices", [x(:), y(:), z(:)], "Faces", tri, |
48 "FaceColor", "none", "EdgeColor", __next_line_color__(), | 48 "FaceColor", "none", "EdgeColor", __next_line_color__(), |
49 varargin{:}); | 49 varargin{:}); |
50 endif | 50 endif |
51 | 51 |
52 if (! ishold ()) | 52 if (! ishold ()) |
53 set (gca(), "view", [-37.5, 30], | 53 set (gca(), "view", [-37.5, 30], |
54 "xgrid", "on", "ygrid", "on", "zgrid", "on"); | 54 "xgrid", "on", "ygrid", "on", "zgrid", "on"); |
55 endif | 55 endif |
56 endif | 56 endif |
57 endfunction | 57 endfunction |
58 | 58 |
59 %!demo | 59 %!demo |