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