CreateCylinder#
- Mesh *CreateCylinder(
- int slices,
- float radius,
- float halfHeight,
- bool cap = false,
Creates a cylinder mesh primitive.
Generates a cylindrical mesh with optional end caps.
- Parameters:
slices – [in] Number of circumferential slices
radius – [in] Radius of the cylinder
halfHeight – [in] Half-height of the cylinder
cap – [in] Whether to include end caps (default: false)
- Returns:
Pointer to the created cylinder mesh