cellVolume | R Documentation |
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)
cell |
a bounded 2D or 3D Voronoï 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.
library(tessellation)
d <- delaunay(centricCuboctahedron())
v <- voronoi(d)
cell13 <- v[[13]]
isBoundedCell(cell13) # TRUE
cellVolume(cell13)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.