Mercurial > octave
diff scripts/geometry/delaunayn.m @ 19164: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 | 4318cb91deac |
line wrap: on
line diff
--- a/scripts/geometry/delaunayn.m Fri Sep 26 08:54:40 2014 -0700 +++ b/scripts/geometry/delaunayn.m Fri Sep 26 09:02:53 2014 -0700 @@ -47,7 +47,7 @@ ## To append user options to the defaults it is necessary to repeat the ## default arguments in @var{options}. Use a null string to pass no arguments. ## -## @seealso{delaunay, delaunay3, convhulln, voronoin, trimesh, tetramesh} +## @seealso{delaunay, convhulln, voronoin, trimesh, tetramesh} ## @end deftypefn function T = delaunayn (pts, varargin) @@ -75,7 +75,7 @@ ## prod(1:n) is dropped. idx = []; [nt, n] = size (T); - ## FIXME: Vectorize this for loop or convert to delaunayn to .oct function + ## FIXME: Vectorize this for loop or convert delaunayn to .oct function for i = 1:nt X = pts(T(i,1:end-1),:) - pts(T(i,2:end),:); if (abs (det (X)) / sqrt (sum (X .^ 2, 2)) < 1e3 * myeps)