triang.list {deldir} | R Documentation |
From an object of class “deldir” produces a list of the Delaunay triangles in the triangulation of a set of points in the plane.
triang.list(object)
object |
An object of class “deldir” as produced by |
A list each of whose components is a 3-x-2 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.
The returned value has an attribute “rw” consisting of the enclosing rectangle of the triangulation.
The code of this function was taken more-or-less directly from code written by Adrian Baddeley for the “delaunay()” function in the “spatstat” package.
Rolf Turner r.turner@auckland.ac.nz http://www.math.unb.ca/~rolf
deldir()
plot.triang.list()
tile.list()
plot.tile.list()
set.seed(42) x <- runif(20) y <- runif(20) d <- deldir(x,y) ttt <- triang.list(d)