View source
class ConeGeometry
package away3d.primitives
extends CylinderGeometry › PrimitiveBase › Geometry › NamedAssetBase
Available on all platforms
A UV Cone primitive mesh.
Constructor
new(radius:Float = 50, height:Float = 100, segmentsW:Int = 16, segmentsH:Int = 1, closed:Bool = true, yUp:Bool = true)
Creates a new Cone object.
Parameters:
radius | The radius of the bottom end of the cone |
|---|---|
height | The height of the cone |
segmentsW | Defines the number of horizontal segments that make up the cone. Defaults to 16. |
segmentsH | Defines the number of vertical segments that make up the cone. Defaults to 1. |
yUp | Defines whether the cone poles should lay on the Y-axis (true) or on the Z-axis (false). |