Mercurial > octave-nkf
diff scripts/plot/shrinkfaces.m @ 15202:f3b5cadfd6d5
fix missing semicolons in various .m files
* playaudio.m, accumarray.m, accumdim.m, bicubic.m, narginchk.m,
nargoutchk.m, nthargout.m, image.m, pkg.m, colorbar.m, hdl2struct.m,
legend.m, plotyy.m, private/__go_draw_axes__.m,
private/__print_parse_opts__.m, shrinkfaces.m, pchip.m, polyval.m,
rundemos.m: Fix lines with missing semicolons.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 19 Aug 2012 10:50:40 -0400 |
parents | c2dbdeaa25df |
children | b613757ff5be |
line wrap: on
line diff
--- a/scripts/plot/shrinkfaces.m Sat Aug 18 22:03:11 2012 -0400 +++ b/scripts/plot/shrinkfaces.m Sun Aug 19 10:50:40 2012 -0400 @@ -101,17 +101,17 @@ endif if (! isscalar (sf) || sf <= 0) - error ("shrinkfaces: scale factor must be a positive scalar") + error ("shrinkfaces: scale factor must be a positive scalar"); endif n = columns (vertices); if (n < 2 || n > 3) - error ("shrinkfaces: only 2D and 3D patches are supported") + error ("shrinkfaces: only 2D and 3D patches are supported"); endif m = columns (faces); if (m < 3) - error ("shrinkfaces: faces must consist of at least 3 vertices") + error ("shrinkfaces: faces must consist of at least 3 vertices"); endif v = vertices(faces'(:), :); @@ -134,8 +134,9 @@ switch (nargout) case 0 if (ishandle (p)) - set (p, "FaceVertexCData", [], "CData", []) # avoid exceptions - set (p, "Vertices", v, "Faces", f, "FaceVertexCData", c) + ## avoid exceptions + set (p, "FaceVertexCData", [], "CData", []); + set (p, "Vertices", v, "Faces", f, "FaceVertxCData", c); else nf = struct ("faces", f, "vertices", v, "facevertexcdata", c); endif