voronoi | R Documentation |
Voronoï tessellation from Delaunay tessellation; this is a list of pairs made of a site (a vertex) and a list of edges.
voronoi(tessellation)
tessellation |
output of |
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"
.
isBoundedCell
, cellVertices
,
plotBoundedCell2D
, plotBoundedCell3D
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.