โ† All examples

mesh algorithms

Lathe revolution with partial angles

Revolve an (r, y) profile around the Y axis, fully or through a partial angle with flat cut faces, and compute the exact volume of the polygonal solid. Use it for vases, bowls, chess pieces and turned parts.

Recorded render of Lathe revolution with partial angles

What this component contains

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

How it works

Entry points
demo_profile, lathe, revolved_volume, build, main
Parameters
profile, segments, angle
Complexity
O(profile points * segments)
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

Profile points need r >= 0 and should go from bottom to top; a profile that crosses the axis or itself gives an invalid solid. Open profiles (not ending on the axis) give open surfaces. Points on the axis collapse to single vertices, so pole faces are triangles.