Delaunay triangulation
DT = delaunay(
creates a
2-D or 3-D Delaunay triangulation from the points in a matrix P
)P
. The
output DT
is a three-column (for two dimensions) or four-column (for
three dimensions) matrix where each row contains the row indices of the input points that
make up a triangle or tetrahedron in the triangulation.
Use the triplot
, trisurf
, trimesh
, or tetramesh
functions to plot the output of
delaunay
.
For more functionality with Delaunay triangulations, consider creating a delaunayTriangulation
object and using object functions to compute geometric
quantities and query properties of the triangulation.