Configuration for the cylinder geometry.
The center position of the cylinder in 3D space, default is [0, 0, 0]
.
The height of the cylinder. Default is 1
.
The number of vertical segments. Default is 1
.
Whether or not the cylinder has solid caps at the top and bottom. Default is false
.
The number of radial (horizontal) segments. Default is 60
.
The radius of the bottom of the cylinder. Default is 1
.
The radius of the top of the cylinder. Default is 1
.
The geometry arrays for the cylinder, including positions, normals, UVs, and indices for the faces.
Creates a cylinder-shaped geometry.
This function generates the geometry arrays required for a cylinder mesh. The cylinder can be configured in terms of its top and bottom radii, height, radial and height segments, and whether it has caps on its ends. It returns the geometry arrays, including vertex positions, normals, texture coordinates (UVs), and indices for the cylinder's faces.
Usage