Supports cylinders, cones (diameterTop=0), truncated cones, and prisms
(low tessellation). Options are a subset of Babylon's MeshBuilder that
covers the typical procedural use-case. Advanced options — arc,
enclose, hasRings, faceColors, faceUV, cap != CAP_ALL — are
intentionally omitted to keep the API small; the default behavior (full
360°, single ring, CAP_ALL) matches Babylon exactly.
Index order and normal computation are ported verbatim from
@babylonjs/core/Meshes/Builders/cylinderBuilder.js to guarantee parity.
CreateCylinder — matches Babylon.js MeshBuilder.CreateCylinder default options.
Supports cylinders, cones (diameterTop=0), truncated cones, and prisms (low tessellation). Options are a subset of Babylon's MeshBuilder that covers the typical procedural use-case. Advanced options —
arc,enclose,hasRings,faceColors,faceUV,cap != CAP_ALL— are intentionally omitted to keep the API small; the default behavior (full 360°, single ring, CAP_ALL) matches Babylon exactly.Index order and normal computation are ported verbatim from
@babylonjs/core/Meshes/Builders/cylinderBuilder.jsto guarantee parity.