Packageaway3d.core.base
Classpublic class Geometry
InheritanceGeometry Inheritance flash.events.EventDispatcher

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
  animation : AnimationBase
The AnimationBase object used to animate the geometry.
Geometry
  subGeometries : Vector
[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
  
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
  
scale(scale:Number):void
Scales the geometry.
Geometry
  
scaleUV(scale:Number):void
Scales the uv coordinates.
Geometry
Property detail
_animationproperty
arcane var _animation:AnimationBase
animationproperty 
animation:AnimationBase  [read-write]

The AnimationBase object used to animate the geometry.

Implementation
    public function get animation():AnimationBase
    public function set animation(value:AnimationBase):void
subGeometriesproperty 
subGeometries:Vector  [read-only]

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

Implementation
    public function get subGeometries():Vector
Constructor detail
Geometry()constructor
public function Geometry() Init Parameters
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.
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.

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. todo: consider signals instead of events?
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(scale:Number):void

Scales the uv coordinates.

Parameters
scale:Number — The amount by which to scale.
Wiki link
Click to go to the wiki page for 'away3d.core.base.Geometry'

Code examples

Comments