Package | away3d.core.base |
Class | public class Geometry |
Inheritance | Geometry NamedAssetBase flash.events.EventDispatcher |
Implements | IAsset |
Subclasses | PrimitiveBase |
See also
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.<SubGeometry> [read-only]
A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc. | Geometry |
Method | Defined By | ||
---|---|---|---|
Geometry()
Creates a new Geometry object. | Geometry | ||
addSubGeometry(subGeometry:SubGeometry):void
Adds a new SubGeometry object to the list. | Geometry | ||
applyTransformation(transform:Matrix3D):void | Geometry | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
Clones the geometry. | Geometry | ||
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
Scales the geometry. | Geometry | ||
scaleUV(scaleU:Number = 1, scaleV:Number = 1):void
Scales the uv coordinates (tiling)
| Geometry |
assetType | property |
assetType:String
[read-only] public function get assetType():String
subGeometries | property |
subGeometries:Vector.<SubGeometry>
[read-only] A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc.
public function get subGeometries():Vector.<SubGeometry>
Geometry | () | Constructor |
public function Geometry()
Creates a new Geometry object.
addSubGeometry | () | method |
public function addSubGeometry(subGeometry:SubGeometry):void
Adds a new SubGeometry object to the list.
Parameters
subGeometry:SubGeometry — The SubGeometry object to be added.
|
applyTransformation | () | method |
public function applyTransformation(transform:Matrix3D):void
Parameters
transform:Matrix3D |
clone | () | method |
public function clone():Geometry
Clones the geometry.
ReturnsGeometry — An exact duplicate of the current Geometry object.
|
dispose | () | method |
public function dispose():void
Clears all resources used by the Geometry object, including SubGeometries.
invalidateBounds | () | method |
removeSubGeometry | () | method |
public function removeSubGeometry(subGeometry:SubGeometry):void
Removes a new SubGeometry object from the list.
Parameters
subGeometry:SubGeometry — The SubGeometry object to be removed.
|
scale | () | method |
public function scale(scale:Number):void
Scales the geometry.
Parameters
scale:Number — The amount by which to scale.
|
scaleUV | () | method |
public function scaleUV(scaleU:Number = 1, scaleV:Number = 1):void
Scales 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 |
arcane function validate():void