Mercurial > octave-libtiff
changeset 22405:81387a85a403
isonormals.m: Matlab compatibility in demos (bug #48873).
isonormals.m: Make demo compatible with Matlab.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 29 Aug 2016 18:04:34 +0200 |
parents | 3aab9fb0dd38 |
children | dc4e2203cd15 |
files | scripts/plot/draw/isonormals.m |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/isonormals.m Mon Aug 29 17:56:28 2016 +0200 +++ b/scripts/plot/draw/isonormals.m Mon Aug 29 18:04:34 2016 +0200 @@ -127,8 +127,8 @@ %! axis equal; %! set (hp, "VertexNormals", -get (hp, "VertexNormals")); # Revert normals %! shading interp; -%! set (hp, "FaceLighting", "gouraud"); -%! set (hp, "BackFaceLighting", "unlit"); +%! lighting gouraud; +%! set (hp, "BackFaceLighting", "lit"); %! light (); %! endfunction %! @@ -145,6 +145,7 @@ %! hp = patch ("Faces", fac, "Vertices", vert, "FaceVertexCData", cdat); %! title ("without isonormals"); %! isofinish (hp); +%! set (hp, "VertexNormalsMode", "auto"); # for Matlab compatibility %! %! subplot (2,2,2); %! view (-38, 20);