powered by
For a bounded 2D Voronoï cell, returns the area of the cell, and for a bounded 3D Voronoï cell, returns the volume of the cell and its surface area.
cellVolume(cell)
A number, the area/volume of the cell, and in the 3D case, the surface area of the cell is attached to this number as an attribute.
a bounded 2D or 3D Voronoï cell
library(tessellation) d <- delaunay(centricCuboctahedron()) v <- voronoi(d) cell13 <- v[[13]] isBoundedCell(cell13) # TRUE cellVolume(cell13)
Run the code above in your browser using DataLab