Home > freetb4matlab > geometry > delaunay.m

delaunay

PURPOSE ^

% The return matrix of size [n, 3] contains a set triangles which are

SYNOPSIS ^

function ret = delaunay (x, y, opt)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{tri} =} delaunay (@var{x}, @var{y})
% @deftypefnx {Function File} {@var{tri} =} delaunay (@var{x}, @var{y}, @var{opt})
% The return matrix of size [n, 3] contains a set triangles which are
% described by the indices to the data point x and y vector.
% The triangulation satisfies the Delaunay circum-circle criterion.
% No other data point is in the circum-circle of the defining triangle.
%
% A third optional argument, which must be a string, contains extra options
% passed to the underlying qhull command.  See the documentation for the 
% Qhull library for details.
%
% @example
% @group
% x = rand (1, 10);
% y = rand (size (x));
% T = delaunay (x, y);
% X = [x(T(:,1)); x(T(:,2)); x(T(:,3)); x(T(:,1))];
% Y = [y(T(:,1)); y(T(:,2)); y(T(:,3)); y(T(:,1))];
% axis ([0,1,0,1]);
% plot (X, Y, 'b', x, y, 'r*');
% @end group
% @end example
% @seealso{voronoi, delaunay3, delaunayn}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003