โ† All examples

mesh algorithms

Chain of interlocking oval links

Build a chain of oval (stadium) wire links that hook through each other, as one link mesh instanced by glTF nodes at alternating 90 degree angles. Use it for props, rigging and anchors.

Recorded render of Chain of interlocking oval links

What this component contains

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

How it works

Entry points
stadium_point, link_mesh, chain, chain_mesh, main
Parameters
links, straight, end_radius, wire_radius, clearance, samples, sides
Complexity
O(samples * sides) for the link; O(links) nodes
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

Links are rigid and straight in a line; there is no physics or sag. Contact is only avoided geometrically when end_radius exceeds twice the wire radius plus the clearance (checked). No texture coordinates.