View source
class SphereGeometry
package away3d.primitives
extends PrimitiveBase › Geometry › NamedAssetBase
Available on all platforms
A UV Sphere primitive mesh.
Constructor
new(radius:Float = 50, segmentsW:Int = 16, segmentsH:Int = 12, yUp:Bool = true)
Creates a new Sphere object.
Parameters:
radius | The radius of the sphere. |
|---|---|
segmentsW | Defines the number of horizontal segments that make up the sphere. |
segmentsH | Defines the number of vertical segments that make up the sphere. |
yUp | Defines whether the sphere poles should lay on the Y-axis (true) or on the Z-axis (false). |