plotDelaunay3D | R Documentation |
Plot a 3D Delaunay tessellation with rgl.
plotDelaunay3D(
tessellation,
color = "distinct",
hue = "random",
luminosity = "light",
alpha = 0.3,
...
)
tessellation |
the output of |
color |
controls the filling colors of the tetrahedra, either
|
hue, luminosity |
if |
alpha |
opacity, number between 0 and 1 |
... |
arguments passed to |
No value, just renders a 3D plot.
library(delaunay)
pts <- rbind(
c(-5, -5, 16),
c(-5, 8, 3),
c(4, -1, 3),
c(4, -5, 7),
c(4, -1, -10),
c(4, -5, -10),
c(-5, 8, -10),
c(-5, -5, -10)
)
tess <- delaunay(pts)
library(rgl)
open3d(windowRect = c(50, 50, 562, 562))
plotDelaunay3D(tess)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.