Create a new TorusGeometry instance.
By default, the constructor creates a torus in the XZ-plane with a tube radius of 0.2, a ring radius of 0.3, 30 segments and 20 sides. The torus is created with UVs in the range of 0 to 1.
Optional
opts: {Options object.
Optional
calculateTangents?: booleanGenerate tangent information. Defaults to false.
Optional
ringRadius?: numberThe radius from the centre of the torus to the centre of the tube. Defaults to 0.3.
Optional
sectorAngle?: numberThe sector angle in degrees of the ring of the torus. Defaults to 2 * Math.PI.
Optional
segments?: numberThe number of radial divisions forming cross-sections of the torus ring. Defaults to 20.
Optional
sides?: numberThe number of divisions around the tubular body of the torus ring. Defaults to 30.
Optional
tubeRadius?: numberThe radius of the tube forming the body of the torus. Defaults to 0.2.
A procedural torus-shaped geometry.
Typically, you would: