Create a new CylinderGeometry instance.
By default, the constructor creates a cylinder standing vertically centered on the XZ-plane with a radius of 0.5, a height of 1.0, 1 height segment and 20 cap segments. The cylinder is created with UVs in the range of 0 to 1.
Optional
opts: {Options object.
Optional
calculateTangents?: booleanGenerate tangent information. Defaults to false.
Optional
capSegments?: numberThe number of divisions around the tubular body of the cylinder. Defaults to 20.
Optional
height?: numberThe length of the body of the cylinder. Defaults to 1.
Optional
heightSegments?: numberThe number of divisions along the length of the cylinder. Defaults to 5.
Optional
radius?: numberThe radius of the tube forming the body of the cylinder. Defaults to 0.5.
A procedural cylinder-shaped geometry.
Typically, you would: