Mercurial > hg > octave-nkf
diff scripts/plot/trimesh.m @ 17494:cd98a50bfa63
hidden.m: Fix hidden so that it also works for trimesh objects.
* scripts/plot/trimesh.m: Set "Tag" property of patch object to "trimesh".
* scripts/plot/hidden.m: Search for surface objects or objects with
Tag "trimesh".
author | Rik <rik@octave.org> |
---|---|
date | Wed, 25 Sep 2013 16:00:09 -0700 |
parents | 000be929e835 |
children | 0f45d9dd8107 |
line wrap: on
line diff
--- a/scripts/plot/trimesh.m +++ b/scripts/plot/trimesh.m @@ -79,9 +79,10 @@ hax = newplot (); + ## Tag object as "trimesh" so that hidden() can find it. htmp = patch ("Vertices", [x(:), y(:), z(:)], "Faces", tri, "FaceVertexCdata", c, "EdgeColor", "flat", "FaceColor", "w", - varargin{:}); + "Tag", "trimesh", varargin{:}); if (! ishold ()) set (hax, "view", [-37.5, 30], "box", "off", "xgrid", "on", "ygrid", "on", "zgrid", "on");