โ† All examples

mesh algorithms

Cylinder, cone, frustum and pipe

Generate straight solids of revolution: cylinders, cones, truncated cones and bored pipes, with flat-shaded caps and UVs. Use it for columns, cups, nozzles, pipes and lamp shades.

Recorded render of Cylinder, cone, frustum and pipe

What this component contains

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

How it works

Entry points
frustum, main
Parameters
bottom_radius, top_radius, height, segments, inner_radius, caps
Complexity
O(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

Only straight sides (no curved profile; see a lathe for that) and a constant-radius bore. Caps and walls own separate vertices for sharp shading, so closed results are watertight after welding. A cone apex holds one vertex per segment.