Mercurial > hg > octave-nkf
diff scripts/plot/draw/tetramesh.m @ 19356:ba167badef9f
Deprecate delaunay3 and extend delaunay to 3-D inputs.
* NEWS: Announce deprecation of delaunay3. Announce extension of delaunay to
3-D inputs.
* scripts/deprecated/delaunay3.m: Moved from geometry/. Print warning about
deprecation when executing function for the first time.
* scripts/deprecated/module.mk: Add deprecated delaunay3.m to build system.
* scripts/geometry/module.mk: Remove from geometry directory build system
* delaunay.m: Redo docstring to mention 2-D and 3-D inputs.
Overhaul function to accept 3-D inputs. Add %!error input validation tests.
* delaunayn, tetramesh.m: Remove seealso reference to delaunay3.
* geometry.txi, install.txi: Remove delaunay3 from manual.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 26 Sep 2014 09:02:53 -0700 |
parents | d63878346099 |
children | 0e1f5a750d00 |
line wrap: on
line diff
--- a/scripts/plot/draw/tetramesh.m +++ b/scripts/plot/draw/tetramesh.m @@ -43,7 +43,7 @@ ## @qcode{"visible"} property @qcode{"on"} or @qcode{"off"}. ## ## Type @code{demo tetramesh} to see examples on using @code{tetramesh}. -## @seealso{trimesh, delaunay3, delaunayn, patch} +## @seealso{trimesh, delaunay, delaunayn, patch} ## @end deftypefn ## Author: Martin Helm <martin@mhelm.de> @@ -130,7 +130,7 @@ %! x = [x(:); 0]; %! y = [y(:); 0]; %! z = [z(:); 0]; -%! tetra = delaunay3 (x, y, z); +%! tetra = delaunay (x, y, z); %! X = [x(:) y(:) z(:)]; %! colormap (jet (64)); %! h = tetramesh (tetra, X); @@ -147,7 +147,7 @@ %! x = [x(:); 0]; %! y = [y(:); 0]; %! z = [z(:); 0]; -%! tetra = delaunay3 (x, y, z); +%! tetra = delaunay (x, y, z); %! X = [x(:) y(:) z(:)]; %! colormap (gray (256)); %! tetramesh (tetra, X, 21:20:241, 'EdgeColor', 'w');