Configuration for the cylinder geometry.
Optionalcenter?: Vec3The center position of the cylinder in 3D space, default is [0, 0, 0].
Optionalheight?: numberThe height of the cylinder. Default is 1.
OptionalheightSegments?: numberThe number of vertical segments. Default is 1.
OptionalopenEnded?: booleanWhether or not the cylinder has solid caps at the top and bottom. Default is false.
OptionalradialSegments?: numberThe number of radial (horizontal) segments. Default is 60.
OptionalradiusBottom?: numberThe radius of the bottom of the cylinder. Default is 1.
OptionalradiusTop?: numberThe radius of the top of the cylinder. Default is 1.
The geometry arrays for the cylinder, including positions, normals, UVs, and indices, or an error message.
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