Trifold T3 Discrete Global Grid System: Technical Reference for Integration and Comparison

Companion document to the README, structured for readers evaluating T3 against other DGGS (A5, H3, S2, rHEALPix, HTM/QTM) for integration into pipelines, databases, or viewers.

TL;DR

Key findings

1. Core design

2. Hierarchy

3. Addressing / indexing

One cell identity, three encodings (see README §2 for the full spec):

All three round-trip losslessly. Python runs 5,000 randomized codec round-trips, and tests/test_worker.py cross-tests representative points against the JavaScript Worker's public endpoint.

4. Tooling

5. Land-adaptive / global coverage

6. Comparison

Property T3 A5 H3 S2 rHEALPix HTM/QTM
Base solid Icosahedron Dodecahedron Icosahedron Cube Cube (HEALPix) Octahedron
Cell shape Triangle Pentagon Hexagon (+12 pentagons) Quadrilateral Quad (+caps/darts) Triangle
Aperture 4, exact 4 (logical only) 7 (approximate) 4, exact 9, exact 4, exact
Equal area ~±20%, smooth exact per level ~2× max/min up to ~2× near-exact larger deformation (octahedron)
Edge neighbors 3 (+9 vertex) 5 6 uniform 4 4 3 (+vertex)
Index uint64, prefix=subtree uint64, Hilbert uint64 uint64, Hilbert string quadtree string/int
Ecosystem this repo (2026) young (2025), growing huge huge niche/OGC niche/astronomy
Best at lossless hierarchy, simplicial/FEM, multi-res coverage density statistics neighbor ops, analytics indexing, range queries equal-area statistics astronomy heritage

T3 vs HTM/QTM specifically: T3 is essentially "HTM on an icosahedron with modern addressing and web tooling." The icosahedron's smaller faces roughly halve worst-case shape/area deformation versus HTM's octahedron (whose faces span 90° arcs); the demo includes an authentic HTM layer so the difference is visible rather than asserted.

T3 vs A5: mirror images. T3 has exact geometry and approximate areas; A5 has exact areas and approximate (logical) geometry. Same 64-bit indexing philosophy. Pick by which invariant your application cannot tolerate breaking.

7. Status and limitations

Single-repo, single-author project (first release 2026, v0.1.0), no independent benchmark yet, neighbor traversal across face boundaries not implemented, equal-area variant (Snyder/ISEA-style projection per face) on the roadmap. Core area preservation and point location are covered by tests/test_core.py; published land-coverage figures come from generated build outputs, not independent third-party validation. Treat T3 as research/demonstration grade: suitable for analysis pipelines and teaching today, not yet for production systems that need the routine breadth of H3 or S2.

Recommendations

  1. Adopt T3 when exact hierarchical aggregation is the binding constraint — multi-resolution statistics, conservative regridding, simplicial/FEM-adjacent pipelines — and pair it with H3 when the same project also needs heavy neighbor traversal.
  2. Use addr64 as the storage key (8 bytes, sortable; use descendant_range for subtree scans); show compact in UIs and reserve path for documentation.
  3. Serve small extents from the Worker, large extents from PMTiles; embed TopoJSON only below ~30k cells.
  4. Thresholds that would change this assessment: an implemented neighbor API plus exact-topology and compacted-output polyfill modes would move T3 from "research-grade" to "usable alternative"; an ISEA-style equal-area variant would collapse its main disadvantage versus A5/rHEALPix.

Caveats