b3dCreateCylinder

Creates a cylinder mesh primitive (radius 1, height 2, centered at origin, with top/bottom caps). Takes textureSlots, uvMode, unique, segments (circular subdivision count, clamped 3-128). Returns mesh entity handle or 0 on failure.

3D Graphics

Parameters & Returns

Parameters

textureSlots Int
uvMode Int
unique Int
segments Int

Returns

Int

Quick Summary

Creates a cylinder mesh primitive (radius 1, height 2, centered at origin, with top/bottom caps). Takes textureSlots, uvMode, unique, segments (circular subdivision count, clamped 3-128). Returns mesh entity handle or 0 on failure.

Technical Exegesis...

Creates a cylinder mesh primitive (radius 1, height 2, centered at origin, with top/bottom caps). Takes textureSlots, uvMode, unique, segments (circular subdivision count, clamped 3-128). Returns mesh entity handle or 0 on failure. Creates surface-based mesh, generates top ring vertices (Y=+1), bottom ring (Y=-1), side triangles connecting rings, top cap (center vertex + triangles), bottom cap (center + triangles), sets normals (horizontal for sides, vertical for caps), unlocks.

Example

Example.bam
; No example implemented yet