| Package | away3d.primitives |
| Class | public class CylinderGeometry |
| Inheritance | CylinderGeometry PrimitiveBase Geometry NamedAssetBase flash.events.EventDispatcher |
| Subclasses | ConeGeometry, RegularPolygonGeometry |
| 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 | |
| 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 | ||
| Property | Defined By | ||
|---|---|---|---|
| _bottomClosed : Boolean | CylinderGeometry | ||
| _bottomRadius : Number | CylinderGeometry | ||
![]() | _geomDirty : Boolean = true | PrimitiveBase | |
| _height : Number | CylinderGeometry | ||
| _segmentsH : uint | CylinderGeometry | ||
| _segmentsW : uint | CylinderGeometry | ||
| _surfaceClosed : Boolean | CylinderGeometry | ||
| _topClosed : Boolean | CylinderGeometry | ||
| _topRadius : Number | CylinderGeometry | ||
![]() | _uvDirty : Boolean = true | PrimitiveBase | |
| _yUp : Boolean | CylinderGeometry | ||
| Method | Defined By | ||
|---|---|---|---|
CylinderGeometry(topRadius:Number = 50, bottomRadius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 1, topClosed:Boolean = true, bottomClosed:Boolean = true, surfaceClosed:Boolean = true, yUp:Boolean = true)
Creates a new Cylinder object. | CylinderGeometry | ||
![]() | 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 | |
| Method | Defined By | ||
|---|---|---|---|
buildGeometry(target:CompactSubGeometry):void [override]
Builds the primitive's geometry when invalid. | CylinderGeometry | ||
buildUVs(target:CompactSubGeometry):void [override]
Builds the primitive's uv coordinates when invalid. | CylinderGeometry | ||
![]() | invalidateGeometry():void
Invalidates the primitive's geometry, causing it to be updated when requested. | PrimitiveBase | |
![]() | invalidateUVs():void
Invalidates the primitive's uv coordinates, causing them to be updated when requested. | PrimitiveBase | |
| _bottomClosed | property |
protected var _bottomClosed:Boolean| _bottomRadius | property |
protected var _bottomRadius:Number| _height | property |
protected var _height:Number| _segmentsH | property |
protected var _segmentsH:uint| _segmentsW | property |
protected var _segmentsW:uint| _surfaceClosed | property |
protected var _surfaceClosed:Boolean| _topClosed | property |
protected var _topClosed:Boolean| _topRadius | property |
protected var _topRadius:Number| _yUp | property |
protected var _yUp:Boolean| bottomClosed | property |
bottomClosed:BooleanDefines whether the bottom end of the cylinder is closed (true) or open.
public function get bottomClosed():Boolean public function set bottomClosed(value:Boolean):void| bottomRadius | property |
bottomRadius:NumberThe radius of the bottom end of the cylinder.
public function get bottomRadius():Number public function set bottomRadius(value:Number):void| height | property |
height:NumberThe radius of the top end of the cylinder.
public function get height():Number public function set height(value:Number):void| segmentsH | property |
segmentsH:uintDefines the number of vertical segments that make up the cylinder. Defaults to 1.
public function get segmentsH():uint public function set segmentsH(value:uint):void| segmentsW | property |
segmentsW:uintDefines the number of horizontal segments that make up the cylinder. Defaults to 16.
public function get segmentsW():uint public function set segmentsW(value:uint):void| topClosed | property |
topClosed:BooleanDefines whether the top end of the cylinder is closed (true) or open.
public function get topClosed():Boolean public function set topClosed(value:Boolean):void| topRadius | property |
topRadius:NumberThe radius of the top end of the cylinder.
public function get topRadius():Number public function set topRadius(value:Number):void| yUp | property |
yUp:BooleanDefines whether the cylinder poles should lay on the Y-axis (true) or on the Z-axis (false).
public function get yUp():Boolean public function set yUp(value:Boolean):void| CylinderGeometry | () | Constructor |
public function CylinderGeometry(topRadius:Number = 50, bottomRadius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 1, topClosed:Boolean = true, bottomClosed:Boolean = true, surfaceClosed:Boolean = true, yUp:Boolean = true)Creates a new Cylinder object.
ParameterstopRadius:Number (default = 50) — The radius of the top end of the cylinder.
| |
bottomRadius:Number (default = 50) — The radius of the bottom end of the cylinder
| |
height:Number (default = 100) — The radius of the bottom end of the cylinder
| |
segmentsW:uint (default = 16) — Defines the number of horizontal segments that make up the cylinder. Defaults to 16.
| |
segmentsH:uint (default = 1) — Defines the number of vertical segments that make up the cylinder. Defaults to 1.
| |
topClosed:Boolean (default = true) — Defines whether the top end of the cylinder is closed (true) or open.
| |
bottomClosed:Boolean (default = true) — Defines whether the bottom end of the cylinder is closed (true) or open.
| |
surfaceClosed: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) |
| buildGeometry | () | method |
override protected function buildGeometry(target:CompactSubGeometry):voidBuilds the primitive's geometry when invalid. This method should not be called directly. The calling should be triggered by the invalidateGeometry method (and in turn by updateGeometry).
Parameters
target:CompactSubGeometry |
| buildUVs | () | method |
override protected function buildUVs(target:CompactSubGeometry):voidBuilds the primitive's uv coordinates when invalid. This method should not be called directly. The calling should be triggered by the invalidateUVs method (and in turn by updateUVs).
Parameters
target:CompactSubGeometry |