| Package | away3d.core.base |
| Class | public class Geometry |
| Inheritance | Geometry NamedAssetBase flash.events.EventDispatcher |
| Implements | IAsset |
| Subclasses | ParticleGeometry, 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.<ISubGeometry> [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:ISubGeometry):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 | ||
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
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.<ISubGeometry> [read-only] A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc.
public function get subGeometries():Vector.<ISubGeometry>| Geometry | () | Constructor |
public function Geometry()Creates a new Geometry object.
| addSubGeometry | () | method |
public function addSubGeometry(subGeometry:ISubGeometry):voidAdds a new SubGeometry object to the list.
Parameters
subGeometry:ISubGeometry — The SubGeometry object to be added.
|
| applyTransformation | () | method |
public function applyTransformation(transform:Matrix3D):voidParameters
transform:Matrix3D |
| clone | () | method |
public function clone():GeometryClones the geometry.
ReturnsGeometry — An exact duplicate of the current Geometry object.
|
| convertToSeparateBuffers | () | method |
public function convertToSeparateBuffers():voidUpdates the SubGeometries so all vertex data is represented in different buffers. Use this for compatibility with Pixel Bender and PBPickingCollider
| dispose | () | method |
public function dispose():voidClears all resources used by the Geometry object, including SubGeometries.
| invalidateBounds | () | method |
| removeSubGeometry | () | method |
public function removeSubGeometry(subGeometry:ISubGeometry):voidRemoves a new SubGeometry object from the list.
Parameters
subGeometry:ISubGeometry — The SubGeometry object to be removed.
|
| scale | () | method |
public function scale(scale:Number):voidScales the geometry.
Parameters
scale:Number — The amount by which to scale.
|
| scaleUV | () | method |
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 |
arcane function validate():void