โ† All examples

mesh algorithms

Platonic solids with exact edge length

Generate the five regular convex polyhedra with exact coordinates and polygon faces found as supporting planes. Use them for dice, crystals, teaching models and as seeds for other operators.

Recorded render of Platonic solids with exact edge length

What this component contains

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

How it works

Entry points
solid_vertices, hull_faces, platonic_solid, build, main
Parameters
solid, edge
Complexity
O(V^4) face finding for V <= 20 vertices
Axes
+Y up, metres

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • generator_runs_system_python
  • generator_runs_verifier_python
  • gltf_strict_structure
  • interpreters_agree
  • example_matches_generator
  • godot_headless_gltf_load
  • godot_compatibility_render

Limits to consider

Only the five regular convex solids; no star polyhedra or Archimedean solids. Face finding checks every vertex triple, which is fine for these sizes but not for large point sets.