hilbert_3d | R Documentation |
Three dimensional Hilbert curve
hilbert_3d(level = 2L)
level |
The level of the curve. |
There are many forms of 3D Hilbert curve. Here we only implement one specific form.
A three-column matrix of coordinates of points on the 3D Hilbert curve.
Michael Bader. Space-Filling Curves: An Introduction with Applications in Scientific Computing, Springer Science & Business Media, 2012. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/978-3-642-31046-1")}.
pos = hilbert_3d(2)
if(require(rgl) && interactive()) {
plot3d(pos, type = "l", lwd = 4, col = 2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.