Baltor Get started

Gallery / Mesh algorithms

Cylinder, cone, frustum and pipe

In your harnessMesh algorithmMIT

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.

Render of Cylinder, cone, frustum and pipe
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Entry points
frustum, main
Parameters
bottom_radius, top_radius, height, segments, inner_radius, caps
Complexity
O(segments)
Axes
+Y up, metres

Limits. 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.

Details

Kind
Mesh algorithm
Engine
Python 3.10 or later
Files
10 files, 185.9 KB
Licence
MIT
Declared effects
reads files, runs commands, writes files
Checked with
Godot 4.7.2, gl_compatibility, OpenGL 3 driver, Mesa llvmpipe under Xvfb
Checks
generator runs system python, generator runs verifier python, gltf strict structure, interpreters agree, example matches generator, godot headless gltf load, godot compatibility render
Techniques
Solid of revolution with a straight profile, Slant normals from the side slope, Annular cap quads
Tags
primitive, cylinder, cone, frustum, pipe, revolution
Identity
library.supply.creative_originals.b26c8cf9ff173b81deec7608.ed4f085af6a000d1
Version
ed4f085af6a000d1ef3e624d3e0844ac6d5ce9bd7306fba1b4d6e6f51ce66f2c

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.