View source
class TorusGeometry
package away3d.primitives
extends PrimitiveBase › Geometry › NamedAssetBase
Available on all platforms
A UV Cylinder primitive mesh.
Constructor
new(radius:Float = 50, tubeRadius:Float = 50, segmentsR:Int = 16, segmentsT:Int = 8, yUp:Bool = true)
Creates a new Torus object.
Parameters:
radius | The radius of the torus. |
|---|---|
tuebRadius | The radius of the inner tube of the torus. |
segmentsR | Defines the number of horizontal segments that make up the torus. |
segmentsT | Defines the number of vertical segments that make up the torus. |
yUp | Defines whether the torus poles should lay on the Y-axis (true) or on the Z-axis (false). |