| Package | away3d.primitives |
| Class | public class PrimitiveBase |
| Inheritance | PrimitiveBase Geometry NamedAssetBase flash.events.EventDispatcher |
| Subclasses | CapsuleGeometry, CubeGeometry, CylinderGeometry, NURBSGeometry, PlaneGeometry, SphereGeometry, TorusGeometry |
| 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 | |
| subGeometries : Vector.<ISubGeometry> [override] [read-only]
A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc. | PrimitiveBase | ||
| Property | Defined By | ||
|---|---|---|---|
| _geomDirty : Boolean = true | PrimitiveBase | ||
| _uvDirty : Boolean = true | PrimitiveBase | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new PrimitiveBase object. | PrimitiveBase | ||
![]() | 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
Builds the primitive's geometry when invalid. | PrimitiveBase | ||
buildUVs(target:CompactSubGeometry):void
Builds the primitive's uv coordinates when invalid. | PrimitiveBase | ||
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 | ||
| _geomDirty | property |
protected var _geomDirty:Boolean = true| _uvDirty | property |
protected var _uvDirty:Boolean = true| subGeometries | property |
subGeometries:Vector.<ISubGeometry> [read-only] [override] A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc.
public function get subGeometries():Vector.<ISubGeometry>| PrimitiveBase | () | Constructor |
public function PrimitiveBase()Creates a new PrimitiveBase object.
| applyTransformation | () | method |
override public function applyTransformation(transform:Matrix3D):void
Parameters
transform:Matrix3D |
| buildGeometry | () | method |
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 |
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 |
| clone | () | method |
override public function clone():GeometryClones the geometry.
ReturnsGeometry — An exact duplicate of the current Geometry object.
|
| invalidateGeometry | () | method |
protected function invalidateGeometry():voidInvalidates the primitive's geometry, causing it to be updated when requested.
| invalidateUVs | () | method |
protected function invalidateUVs():voidInvalidates the primitive's uv coordinates, causing them to be updated when requested.
| scale | () | method |
override public function scale(scale:Number):voidScales the geometry.
Parameters
scale:Number — The amount by which to scale.
|
| scaleUV | () | method |
override public function scaleUV(scaleU:Number = 1, scaleV:Number = 1):voidScales the uv coordinates (tiling)
Parameters
scaleU:Number (default = 1) — The amount by which to scale on the u axis. Default is 1;
| |
scaleV:Number (default = 1) — The amount by which to scale on the v axis. Default is 1;
|
| validate | () | method |
override arcane function validate():void