โ† All examples

geometry 4d

Tesseract from 4-bit vertex labels

Build the tesseract exactly (edges, square faces and cubic cells from bit patterns), rotate it in any of the six planes and write a projected wireframe glTF or a polytope JSON record. Also gives its Gray code cycle and inscribed 16-cells.

Recorded render of Tesseract from 4-bit vertex labels

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • component.json
  • example.gltf
  • fourd.py
  • preview.png
  • tesseract.py
  • test_package.py
  • verification/native.json

How it works

Entry points
vertices, polytope, gray_cycle, is_hamiltonian_cycle, half_tesseracts, is_sixteen_cell, wireframe, export and 3 more
Outputs
example.gltf
Coordinates
x, y, z, w; projected to Godot/glTF +Y up

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • cli_rebuilds_example
  • gltf_structure_example
  • cli_example_runs
  • cli_example_gltf_structure
  • godot_loads_example
  • godot_loads_cli_tesseract_lines
  • preview_render

Limits to consider

Tubes are straight segments between projected vertices, so under the stereographic projection they are chords, not the circular arcs that are the true images of great-circle edges. The perspective projection refuses an eye inside the rotated object. Depth colour is linear in the rotated w coordinate and is not physically based.