โ† All examples

mesh algorithms

3D supershape from the Gielis superformula

Generate star, flower, shell and crystal solids from two Gielis superformula curves combined as a spherical product. Use it for organic props, alien plants and procedural gems.

Recorded render of 3D supershape from the Gielis superformula

What this component contains

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

How it works

Entry points
superformula, supershape, main
Parameters
m1, n1, n2, n3, m2, p1, p2, p3 and 3 more
Complexity
O(segments * rings)
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

Some parameter sets make the radius very large or undefined at certain angles (an error is raised when both terms vanish); very small n1 values give spiky shapes with thin faces. The surface can intersect itself for extreme values. No texture coordinates.