โ† All examples

mesh algorithms

Loft through a stack of profiles

Skin a closed solid through a sequence of closed profiles, resampled to equal counts by arc length and aligned to avoid twisting, with capped ends. Use it for bottles, hulls, towers and organic forms.

Recorded render of Loft through a stack of profiles

What this component contains

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

How it works

Entry points
resample_closed, align, loft, demo_profiles, build, main
Parameters
shape, samples
Complexity
O(profiles * samples^2) for the alignment search
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

Profiles should be planar, simple and stacked without crossing each other; the alignment tries every cyclic shift (quadratic in the sample count). Corners are kept only when resampling lands on them. Side quads between non-parallel profiles are not planar.