Packageaway3d.core.base
Classpublic class Geometry
InheritanceGeometry Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher
Implements IAsset
Subclasses PrimitiveBase

Geometry is a collection of SubGeometries, each of which contain the actual geometrical data such as vertices, normals, uvs, etc. It also contains a reference to an animation class, which defines how the geometry moves. A Geometry object is assigned to a Mesh, a scene graph occurence of the geometry, which in turn assigns the SubGeometries to its respective SubMesh objects.

See also

away3d.core.base.SubGeometry
away3d.scenegraph.Mesh


Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
  assetType : String
[read-only]
Geometry
 Inheritedname : String
NamedAssetBase
 InheritedoriginalName : 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
Public Methods
 MethodDefined By
  
Creates a new Geometry object.
Geometry
  
addSubGeometry(subGeometry:SubGeometry):void
Adds a new SubGeometry object to the list.
Geometry
  
applyTransformation(transform:Matrix3D):void
Geometry
 Inherited
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
 Inherited
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
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
assetTypeproperty
assetType:String  [read-only]


Implementation
    public function get assetType():String
subGeometriesproperty 
subGeometries:Vector.<SubGeometry>  [read-only]

A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc.


Implementation
    public function get subGeometries():Vector.<SubGeometry>
Constructor Detail
Geometry()Constructor
public function Geometry()

Creates a new Geometry object.

Method Detail
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.

Returns
Geometry — 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 
arcane function invalidateBounds(subGeom:SubGeometry):void

Parameters

subGeom:SubGeometry

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