Package | away3d.primitives |
Class | public class ConeGeometry |
Inheritance | ConeGeometry CylinderGeometry PrimitiveBase Geometry NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only] | Geometry | ||
bottomClosed : Boolean
Defines whether the bottom end of the cylinder is closed (true) or open. | CylinderGeometry | ||
bottomRadius : Number
The radius of the bottom end of the cylinder. | CylinderGeometry | ||
height : Number
The radius of the top end of the cylinder. | CylinderGeometry | ||
name : String | NamedAssetBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
radius : Number
The radius of the bottom end of the cone. | ConeGeometry | ||
segmentsH : uint
Defines the number of vertical segments that make up the cylinder. | CylinderGeometry | ||
segmentsW : uint
Defines the number of horizontal segments that make up the cylinder. | CylinderGeometry | ||
subGeometries : Vector.<ISubGeometry> [override] [read-only]
A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc. | PrimitiveBase | ||
topClosed : Boolean
Defines whether the top end of the cylinder is closed (true) or open. | CylinderGeometry | ||
topRadius : Number
The radius of the top end of the cylinder. | CylinderGeometry | ||
yUp : Boolean
Defines whether the cylinder poles should lay on the Y-axis (true) or on the Z-axis (false). | CylinderGeometry |
Method | Defined By | ||
---|---|---|---|
ConeGeometry(radius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 1, closed:Boolean = true, yUp:Boolean = true)
Creates a new Cone object. | ConeGeometry | ||
addSubGeometry(subGeometry:ISubGeometry):void
Adds a new SubGeometry object to the list. | Geometry | ||
applyTransformation(transform:Matrix3D):void [override]
| PrimitiveBase | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
[override]
Clones the geometry. | PrimitiveBase | ||
convertToSeparateBuffers():void
Updates the SubGeometries so all vertex data is represented in different buffers. | Geometry | ||
dispose():void
Clears all resources used by the Geometry object, including SubGeometries. | Geometry | ||
removeSubGeometry(subGeometry:ISubGeometry):void
Removes a new SubGeometry object from the list. | Geometry | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | ||
scale(scale:Number):void [override]
Scales the geometry. | PrimitiveBase | ||
scaleUV(scaleU:Number = 1, scaleV:Number = 1):void [override]
Scales the uv coordinates (tiling)
| PrimitiveBase |
radius | property |
radius:Number
The radius of the bottom end of the cone.
public function get radius():Number
public function set radius(value:Number):void
ConeGeometry | () | Constructor |
public function ConeGeometry(radius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 1, closed:Boolean = true, yUp:Boolean = true)
Creates a new Cone object.
Parametersradius:Number (default = 50 ) — The radius of the bottom end of the cone
| |
height:Number (default = 100 ) — The height of the cone
| |
segmentsW:uint (default = 16 ) — Defines the number of horizontal segments that make up the cone. Defaults to 16.
| |
segmentsH:uint (default = 1 ) — Defines the number of vertical segments that make up the cone. Defaults to 1.
| |
closed:Boolean (default = true ) — Defines whether the cone poles should lay on the Y-axis (true) or on the Z-axis (false).
| |
yUp:Boolean (default = true )
|