changeset 27990:ee4252a97de8

isocaps.m: Remove setting normals in demo (bug #57553).
author Markus Mützel <markus.muetzel@gmx.de>
date Wed, 22 Jan 2020 16:25:32 +0100
parents d807d9ad64cf
children 55d70dd3a05f
files scripts/plot/draw/isocaps.m
diffstat 1 files changed, 5 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/isocaps.m	Wed Jan 22 11:43:13 2020 -0800
+++ b/scripts/plot/draw/isocaps.m	Wed Jan 22 16:25:32 2020 +0100
@@ -371,11 +371,10 @@
 
 
 %!demo
-%! clf;
 %! isoval = .4;
 %! lin = linspace (0, 1.2, 15);
 %! [x, y, z] = meshgrid (lin, lin, lin);
-%! v = abs ((x-.45).^2 + (y-.55).^2 + (z-.8).^2);
+%! v = abs ((x-0.45).^2 + (y-0.55).^2 + (z-0.8).^2);
 %! hf = clf;
 %! ha = axes;
 %! view (3);  box off;
@@ -386,22 +385,18 @@
 %! isonormals (x, y, z, v, p_iso);
 %! fvc_xmin = isocaps (x, y, z, v, isoval, "xmin", "b");
 %! patch (fvc_xmin, "FaceColor", "interp", "EdgeColor", "none", ...
-%!        "FaceLighting", "gouraud", ...
-%!        "VertexNormals", repmat([-1 0 0], size (fvc_xmin.vertices, 1), 1));
+%!        "FaceLighting", "gouraud");
 %! fvc_ymin = isocaps (x, y, z, v, isoval, "ymin", "b");
 %! patch (fvc_ymin, "FaceColor", "interp", "EdgeColor", "none", ...
-%!        "FaceLighting", "gouraud", ...
-%!        "VertexNormals", repmat([0 -1 0], size (fvc_ymin.vertices, 1), 1));
+%!        "FaceLighting", "gouraud");
 %! fvc_zmax = isocaps (x, y, z, v, isoval, "zmax", "b");
 %! patch (fvc_zmax, "FaceColor", "interp", "EdgeColor", "none", ...
-%!        "FaceLighting", "gouraud", ...
-%!        "VertexNormals", repmat([0 -1 0], size (fvc_zmax.vertices, 1), 1));
+%!        "FaceLighting", "gouraud");
 %! axis equal;
 %! light ();
-%! title ({"isocaps()", "sphere with 6 end-caps"});
+%! title ({"isocaps()", "sphere with 3 end-caps"});
 
 %!demo
-%! clf;
 %! v = smooth3 (rand (6, 8, 4));
 %! isoval = .5;
 %! x = 1:3:22;  y = -14:5:11;  z = linspace (16, 18, 4);