## ------------------------------------------------
## Method `Edge3$new`
## ------------------------------------------------
edge <- Edge3$new(c(1, 1, 1), c(1, 2, 3))
edge
edge$A
edge$A <- c(1, 0, 0)
edge
## ------------------------------------------------
## Method `Edge3$print`
## ------------------------------------------------
Edge3$new(c(2, 0, 0), c(3, -1, 4))
## ------------------------------------------------
## Method `Edge3$plot`
## ------------------------------------------------
library(tessellation)
d <- delaunay(centricCuboctahedron())
v <- voronoi(d)
cell13 <- v[[13]] # the point (0, 0, 0), at the center
isBoundedCell(cell13) # TRUE
library(rgl)
open3d(windowRect = c(50, 50, 562, 562))
invisible(lapply(cell13[["cell"]], function(edge) edge$plot()))
Run the code above in your browser using DataLab