GeometryUtils is an addon, and must be imported explicitly, see Installation#Addons.
import * as GeometryUtils from 'three/addons/utils/GeometryUtils.js';
Generates a Gosper curve (lying in the XY plane).
Reference: https://gist.github.com/nitaku/6521802
size
The size of a single gosper island.
Default is 1.
Returns: The gosper island points.
Generates 2D-Coordinates along a Hilbert curve.
Based on work by: http://www.openprocessing.org/sketch/15493
center
Center of Hilbert curve.
size
Total width of Hilbert curve.
Default is 10.
iterations
Number of subdivisions.
Default is 10.
v0
Corner index -X, -Z.
Default is 0.
v1
Corner index -X, +Z.
Default is 1.
v2
Corner index +X, +Z.
Default is 2.
v3
Corner index +X, -Z.
Default is 3.
Returns: The Hilbert curve points.
Generates 3D-Coordinates along a Hilbert curve.
Based on work by: https://openprocessing.org/user/5654
center
Center of Hilbert curve.
size
Total width of Hilbert curve.
Default is 10.
iterations
Number of subdivisions.
Default is 1.
v0
Corner index -X, +Y, -Z.
Default is 0.
v1
Corner index -X, +Y, +Z.
Default is 1.
v2
Corner index -X, -Y, +Z.
Default is 2.
v3
Corner index -X, -Y, -Z.
Default is 3.
v4
Corner index +X, -Y, -Z.
Default is 4.
v5
Corner index +X, -Y, +Z.
Default is 5.
v6
Corner index +X, +Y, +Z.
Default is 6.
v7
Corner index +X, +Y, -Z.
Default is 7.
Returns: