Navigation

Operators and Keywords

Function List:

C++ API

: [C, F] = voronoin (pts)
: [C, F] = voronoin (pts, options)

Compute N-dimensional Voronoi facets.

The input matrix pts of size [n, dim] contains n points in a space of dimension dim.

C contains the points of the Voronoi facets. The list F contains, for each facet, the indices of the Voronoi points.

An optional second argument, which must be a string or cell array of strings, contains options passed to the underlying qhull command. See the documentation for the Qhull library for details http://www.qhull.org/html/qh-quick.htm#options.

The default options depend on the dimension of the input:

  • 2-D and 3-D: options = {"Qbb"}
  • 4-D and higher: options = {"Qbb", "Qx"}

If options is not present or [] then the default arguments are used. Otherwise, options replaces the default argument list. To append user options to the defaults it is necessary to repeat the default arguments in options. Use a null string to pass no arguments.

See also: voronoi, convhulln, delaunayn.

Package: octave