Skip to contents

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 delaunay

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".

Examples

library(tessellation)
d <- delaunay(centricCuboctahedron())
v <- voronoi(d)
#> Voronoï diagram with one bounded cell.
# the Voronoï diagram has 13 cells (one for each site):
length(v)
#> [1] 13
# there is only one bounded cell:
length(Filter(isBoundedCell, v)) # or attr(v, "nbounded")
#> [1] 1