hilbert_3d: Three dimensional Hilbert curve

View source: R/hilbert_3d.R

hilbert_3dR Documentation

Three dimensional Hilbert curve

Description

Three dimensional Hilbert curve

Usage

hilbert_3d(level = 2L)

Arguments

level

The level of the curve.

Details

There are many forms of 3D Hilbert curve. Here we only implement one specific form.

Value

A three-column matrix of coordinates of points on the 3D Hilbert curve.

See Also

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")}.

Examples

pos = hilbert_3d(2)
if(require(rgl) && interactive()) {
    plot3d(pos, type = "l", lwd = 4, col = 2)
}

sfcurve documentation built on Sept. 14, 2024, 1:07 a.m.