deldir (version 0.0-19)

triang.list: Create a list of Delaunay triangles

Description

From an object of class deldir produces a list of the Delaunay triangles in the triangulation of a set of points in the plane.

Usage

triang.list(object)

Arguments

object
An object of class deldir as produced by deldir().

Value

  • A list each of whose components is a $3 \times 2$ or $3 \times 3$ data frame corresponding to one of the Delaunay triangles specified by object. The rows of each such data frame consist of the coordinates of the vertices of the corresponding Delaunay triangle, and possibly the values of the auxiliary variable or weight z associated with the vertices (if such values were supplied in the call to deldir()).

    The returned value has an attribute rw consisting of the enclosing rectangle of the triangulation.

See Also

deldir() plot.triang.list() tile.list() plot.tile.list()

Examples

Run this code
set.seed(42)
x   <- runif(20)
y   <- runif(20)
z   <- sample(1:100,20)
d   <- deldir(x,y,z=z)
ttt <- triang.list(d)

Run the code above in your browser using DataCamp Workspace