โ† All examples

geometry 4d

Duoprisms as products of two polygons

Build any {p}x{q} duoprism exactly (pq vertices, two rings of prisms), with unit-edge or equal radii, check its counts and volume against the product formulas, and write exploded prisms, a wireframe glTF or a polytope JSON record.

Recorded render of Duoprisms as products of two polygons

What this component contains

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

How it works

Entry points
radii, polytope, polygon_area, expected_counts, is_uniform, tesseract_check, mesh, export and 3 more
Outputs
example.gltf
Coordinates
x, y, z, w (p-gon in xy, q-gon in zw); 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_duoprism_3_12
  • preview_render

Limits to consider

p times q is capped at 4096 in the CLI. The exploded view shrinks each projected prism toward its own projected centroid, a display choice. The perspective projection refuses an eye inside the rotated duoprism; flat faces under the stereographic projection approximate curved cell images.