voronoi {tessellation} | R Documentation |
Voronoï tessellation
Description
Voronoï tessellation from Delaunay tessellation; this is a list of pairs made of a site (a vertex) and a list of edges.
Usage
voronoi(tessellation)
Arguments
tessellation |
output of |
Value
A list of pairs representing the Voronoï tessellation. Each
pair
is named: the first component is called
"site"
, and the second component is called "cell"
.
See Also
isBoundedCell
, cellVertices
,
plotBoundedCell2D
, plotBoundedCell3D
Examples
library(tessellation)
d <- delaunay(centricCuboctahedron())
v <- voronoi(d)
# the Voronoï diagram has 13 cells (one for each site):
length(v)
# there is only one bounded cell:
length(Filter(isBoundedCell, v)) # or attr(v, "nbounded")
[Package tessellation version 2.3.0 Index]