โ† All examples

mesh algorithms

Icosphere by recursive subdivision

Build an evenly tessellated sphere by splitting a regular icosahedron into four triangles per face and projecting onto the sphere. Use it for physics bodies, planets and smooth balls.

Recorded render of Icosphere by recursive subdivision

What this component contains

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

How it works

Entry points
icosahedron, icosphere, main
Parameters
radius, subdivisions
Complexity
O(20 * 4^subdivisions)
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

No texture coordinates: an icosphere has no seam-free UV layout; add a spherical projection if needed. Triangles are close to equal but not identical in size (edge lengths vary by about 20 percent at three levels). The polygon volume is below the true sphere's.