[Paper Review] Sixteen space-filling curves and traversals for d-dimensional cubes and simplices
This paper presents a unified framework for 16 space-filling traversals in d-dimensional cubes and simplices, using a consistent notation system to generalize known curves and introduce new ones. It enables precise, recursive construction of discontinuous and continuous traversals via recursive subdivision, rotation, reflection, and reordering, with algorithms provided for coordinate-to-traversal mapping and inverse computation.
This article describes sixteen different ways to traverse d-dimensional space recursively in a way that is well-defined for any number of dimensions. Each of these traversals has distinct properties that may be beneficial for certain applications. Some of the traversals are novel, some have been known in principle but had not been described adequately for any number of dimensions, some of the traversals have been known. This article is the first to present them all in a consistent notation system. Furthermore, with this article, tools are provided to enumerate points in a regular grid in the order in which they are visited by each traversal. In particular, we cover: five discontinuous traversals based on subdividing cubes into 2^d subcubes: Z-traversal (Morton indexing), U-traversal, Gray-code traversal, Double-Gray-code traversal, and Inside-out traversal; two discontinuous traversals based on subdividing simplices into 2^d subsimplices: the Hill-Z traversal and the Maehara-reflected traversal; five continuous traversals based on subdividing cubes into 2^d subcubes: the Base-camp Hilbert curve, the Harmonious Hilbert curve, the Alfa Hilbert curve, the Beta Hilbert curve, and the Butz-Hilbert curve; four continuous traversals based on subdividing cubes into 3^d subcubes: the Peano curve, the Coil curve, the Half-coil curve, and the Meurthe curve. All of these traversals are self-similar in the sense that the traversal in each of the subcubes or subsimplices of a cube or simplex, on any level of recursive subdivision, can be obtained by scaling, translating, rotating, reflecting and/or reversing the traversal of the complete unit cube or simplex.
Motivation & Objective
- To provide a consistent, extensible notation system for describing space-filling traversals in arbitrary dimensions, addressing inconsistencies and ambiguities in prior literature.
- To systematically generalize known space-filling curves—such as Hilbert, Peano, and Z-order curves—into higher dimensions with precise geometric transformations.
- To introduce and formally describe previously under-specified or novel traversals, including the Inside-out, Double-Gray-code, and Maehara-reflected traversals.
- To enable efficient computation of traversal order and inverse mapping (coordinate to traversal index) for all 16 traversals using recursive algorithms.
- To support practical applications in computational geometry, data structures, and high-performance computing by ensuring locality-preserving and measure-preserving properties.
Proposed method
- Adopt a recursive notation system based on subcube/simplice indexing, transformations (rotation, reflection, reversal), and coordinate permutations to define each traversal.
- Define traversals via recursive subdivision of the d-dimensional unit cube or simplex into 2^d or 3^d subcells, with each subcell traversed according to a scaled, transformed version of the base traversal.
- Use signed permutations and barycentric coordinates to encode geometric symmetries, particularly for simplicial traversals like the Hill-Z and Maehara-reflected curves.
- Introduce a systematic method to ensure continuity (e.g., endpoint matching) and locality preservation by carefully selecting transformation sequences at each recursive level.
- Develop algorithms to compute the traversal index of any grid point and the inverse mapping (from index to coordinates), using bit manipulation and recursive decomposition.
- Apply the squaring operation (repeated application of lower-dimensional traversals) to generate higher-dimensional traversals, enabling modular construction.
Experimental results
Research questions
- RQ1How can space-filling traversals be generalized to arbitrary dimensions with consistent, unambiguous definitions?
- RQ2Which combinations of rotations, reflections, and reorderings yield continuous, locality-preserving traversals in d dimensions?
- RQ3Can discontinuous traversals (e.g., Z-order, Gray-code) be systematically extended to d dimensions with clear transformation rules?
- RQ4What are the geometric and topological constraints that prevent certain traversals (e.g., semi-face-continuous) from existing in higher dimensions?
- RQ5How can inverse mapping and efficient indexing be implemented for all 16 traversals using recursive, bit-level operations?
Key findings
- The paper successfully generalizes 16 distinct space-filling traversals to arbitrary dimensions using a unified notation system, including five discontinuous and 11 continuous traversals.
- The Base-camp, Harmonious, Alfa, Beta, and Butz-Hilbert curves are formally extended to d dimensions with precise transformation rules ensuring continuity and locality preservation.
- The Peano, Coil, Half-coil, and Meurthe curves—based on 3^d subdivision—are generalized to d dimensions, with algorithms provided for traversal and inverse computation.
- The Inside-out and Double-Gray-code traversals are introduced as novel, self-similar, discontinuous traversals with favorable locality and bit-parallel indexing properties.
- The Hill-Z and Maehara-reflected traversals are formally defined for simplices in d dimensions, with the latter achieving face-continuity via symmetric reflection patterns.
- A software prototype is implemented that supports efficient traversal indexing and inverse mapping for all 16 traversals, using recursive decomposition and bit manipulation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.