Package | away3d.primitives |
Class | public class TorusGeometry |
Inheritance | TorusGeometry PrimitiveBase Geometry NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only] | Geometry | ||
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 torus. | TorusGeometry | ||
segmentsR : uint
Defines the number of horizontal segments that make up the torus. | TorusGeometry | ||
segmentsT : uint
Defines the number of vertical segments that make up the torus. | TorusGeometry | ||
subGeometries : Vector.<SubGeometry> [override] [read-only]
A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc. | PrimitiveBase | ||
tubeRadius : Number
The radius of the inner tube of the torus. | TorusGeometry | ||
yUp : Boolean
Defines whether the torus poles should lay on the Y-axis (true) or on the Z-axis (false). | TorusGeometry |
Property | Defined By | ||
---|---|---|---|
_geomDirty : Boolean = true | PrimitiveBase | ||
_radius : Number | TorusGeometry | ||
_segmentsR : uint | TorusGeometry | ||
_segmentsT : uint | TorusGeometry | ||
_tubeRadius : Number | TorusGeometry | ||
_uvDirty : Boolean = true | PrimitiveBase | ||
_yUp : Boolean | TorusGeometry |
Method | Defined By | ||
---|---|---|---|
TorusGeometry(radius:Number = 50, tubeRadius:Number = 50, segmentsR:uint = 16, segmentsT:uint = 8, yUp:Boolean = true)
Creates a new Torus object. | TorusGeometry | ||
addSubGeometry(subGeometry:SubGeometry):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 | ||
dispose():void
Clears all resources used by the Geometry object, including SubGeometries. | Geometry | ||
removeSubGeometry(subGeometry:SubGeometry):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:SubGeometry):void [override]
Builds the primitive's geometry when invalid. | TorusGeometry | ||
buildUVs(target:SubGeometry):void [override]
Builds the primitive's uv coordinates when invalid. | TorusGeometry | ||
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 |
_radius | property |
protected var _radius:Number
_segmentsR | property |
protected var _segmentsR:uint
_segmentsT | property |
protected var _segmentsT:uint
_tubeRadius | property |
protected var _tubeRadius:Number
_yUp | property |
protected var _yUp:Boolean
radius | property |
radius:Number
The radius of the torus.
public function get radius():Number
public function set radius(value:Number):void
segmentsR | property |
segmentsR:uint
Defines the number of horizontal segments that make up the torus. Defaults to 16.
public function get segmentsR():uint
public function set segmentsR(value:uint):void
segmentsT | property |
segmentsT:uint
Defines the number of vertical segments that make up the torus. Defaults to 8.
public function get segmentsT():uint
public function set segmentsT(value:uint):void
tubeRadius | property |
tubeRadius:Number
The radius of the inner tube of the torus.
public function get tubeRadius():Number
public function set tubeRadius(value:Number):void
yUp | property |
yUp:Boolean
Defines whether the torus 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
TorusGeometry | () | Constructor |
public function TorusGeometry(radius:Number = 50, tubeRadius:Number = 50, segmentsR:uint = 16, segmentsT:uint = 8, yUp:Boolean = true)
Creates a new Torus
object.
radius:Number (default = 50 ) — The radius of the torus.
| |
tubeRadius:Number (default = 50 ) — The radius of the inner tube of the torus.
| |
segmentsR:uint (default = 16 ) — Defines the number of horizontal segments that make up the torus.
| |
segmentsT:uint (default = 8 ) — Defines the number of vertical segments that make up the torus.
| |
yUp:Boolean (default = true ) — Defines whether the torus poles should lay on the Y-axis (true) or on the Z-axis (false).
|
buildGeometry | () | method |
override protected function buildGeometry(target:SubGeometry):void
Builds 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:SubGeometry |
buildUVs | () | method |
override protected function buildUVs(target:SubGeometry):void
Builds 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:SubGeometry |