Skip to content

delaunayn

geometry · scripts/geometry/delaunayn.m

: t = delaunayn (pts)
: t = delaunayn (pts, options)

Compute the Delaunay triangulation of an n-dimensional point set.

pts is m-by-n with one point per row. The result t has one simplex per row (n+1 one-based point indices): triangles for n = 2, tetrahedra for n = 3 and so on. No point lies inside the circumsphere of any simplex, and zero-volume simplices are left out. For n = 1 the rows are the segments joining neighbouring points in sorted order. In two dimensions every triangle is listed counter-clockwise.

options is an optional character row or cell array of character strings with options for the underlying triangulation library. The defaults are suited to most data.

Degenerate input (too few points, or all points in a lower-dimensional flat) is an error.