| Package | away3d.core.base |
| Class | public class Geometry |
| Inheritance | Geometry flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
| cloneElementDictionary : Dictionary
An dictionary containing associations between cloned elements. | Geometry | ||
| elements : Vector.<Element> [read-only]
Returns an array of all elements contained in the geometry object. | Geometry | ||
| faces : Vector.<Face> [read-only]
Returns an array of the faces contained in the geometry object. | Geometry | ||
| graphics : Graphics3D
A graphics element in charge of managing the distribution of vector drawing commands into faces. | Geometry | ||
| materialDictionary : Dictionary
An dictionary containing all the materials included in the geometry. | Geometry | ||
| quarterFacesTotal : int [read-only]
Returns the total number of times the geometry has been quartered. | Geometry | ||
| rootBone : Bone
Reference to the root heirarchy of bone controllers for a skin. | Geometry | ||
| segments : Vector.<Segment> [read-only]
Returns an array of the segments contained in the geometry object. | Geometry | ||
| skinControllers : Array
Array of controller objects used to bind vertices with joints in a skin. | Geometry | ||
| skinVertices : Array
Array of vertices used in a skin. | Geometry | ||
| sprites : Vector.<Sprite3D> [read-only]
Returns an array of the 3d sprites contained in the geometry object. | Geometry | ||
| vertices : Vector.<Vertex>
Returns an array of all vertices contained in the geometry object
| Geometry | ||
| verts : Vector.<Number> [read-only] | Geometry | ||
| Property | Defined By | ||
|---|---|---|---|
| ini : Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the 3d object constructor. | Geometry | ||
| Method | Defined By | ||
|---|---|---|---|
Geometry()
Creates a new Geometry object. | Geometry | ||
Adds a face element to the geometry object. | Geometry | ||
addOnGeometryUpdate(listener:Function):void
Default method for adding a geometryUpdated event listener
| Geometry | ||
addOnMappingChange(listener:Function):void
Default method for adding a mappingChanged event listener
| Geometry | ||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialUpdated event listener
| Geometry | ||
addSegment(segment:Segment):void
Adds a segment element to the geometry object. | Geometry | ||
Adds a 3d sprite element to the geometry object. | Geometry | ||
Duplicates the geometry properties to another geometry object. | Geometry | ||
invertFaces():void
Inverts the geometry of all face objects. | Geometry | ||
quarterFace(face:Face, medians:Dictionary = null):void
Divides a face object into 4 equal sized face objects. | Geometry | ||
quarterFaces():void
Divides all faces objects of a Mesh into 4 equal sized face objects. | Geometry | ||
removeFace(face:Face):void
Removes a face element from the geometry object. | Geometry | ||
removeOnGeometryUpdate(listener:Function):void
Default method for removing a geometryUpdated event listener
| Geometry | ||
removeOnMappingChange(listener:Function):void
Default method for removing a mappingChanged event listener
| Geometry | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialUpdated event listener
| Geometry | ||
removeSegment(segment:Segment):void
Removes a segment element from the geometry object. | Geometry | ||
removeSprite(sprite3d:Sprite3D):void
Removes a 3d sprite element from the geometry object. | Geometry | ||
Divides a face object into 2 face objects. | Geometry | ||
splitFaces(side:int = 0):void
Divides all faces objects of a Mesh into 2 face objects. | Geometry | ||
Divides a face object into 3 face objects. | Geometry | ||
triFaces():void
Divides all faces objects of a Mesh into 3 face objects. | Geometry | ||
updateGeometry():void
Updates the elements in the geometry object
| Geometry | ||
Updates the materials in the geometry object
| Geometry | ||
updateVertex(v:Vertex, x:Number, y:Number, z:Number, refreshNormals:Boolean = false):void
update vertex information. | Geometry | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when a single animation in a sequence completes. | Geometry | |||
| Dispatched when the bounding dimensions of the geometry object change. | Geometry | |||
| Dispatched when a sequence of animations completes. | Geometry | |||
| cloneElementDictionary | property |
public var cloneElementDictionary:DictionaryAn dictionary containing associations between cloned elements.
| elements | property |
elements:Vector.<Element> [read-only] Returns an array of all elements contained in the geometry object.
public function get elements():Vector.<Element>| faces | property |
faces:Vector.<Face> [read-only] Returns an array of the faces contained in the geometry object.
public function get faces():Vector.<Face>| graphics | property |
public var graphics:Graphics3DA graphics element in charge of managing the distribution of vector drawing commands into faces.
| ini | property |
protected var ini:InitInstance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
| materialDictionary | property |
public var materialDictionary:DictionaryAn dictionary containing all the materials included in the geometry.
| quarterFacesTotal | property |
quarterFacesTotal:int [read-only] Returns the total number of times the geometry has been quartered.
public function get quarterFacesTotal():int| rootBone | property |
public var rootBone:BoneReference to the root heirarchy of bone controllers for a skin.
| segments | property |
segments:Vector.<Segment> [read-only] Returns an array of the segments contained in the geometry object.
public function get segments():Vector.<Segment>| skinControllers | property |
public var skinControllers:ArrayArray of controller objects used to bind vertices with joints in a skin.
| skinVertices | property |
public var skinVertices:ArrayArray of vertices used in a skin.
| sprites | property |
sprites:Vector.<Sprite3D> [read-only] Returns an array of the 3d sprites contained in the geometry object.
public function get sprites():Vector.<Sprite3D>| vertices | property |
vertices:Vector.<Vertex>Returns an array of all vertices contained in the geometry object
public function get vertices():Vector.<Vertex> public function set vertices(value:Vector.<Vertex>):void| verts | property |
verts:Vector.<Number> [read-only] public function get verts():Vector.<Number>| Geometry | () | Constructor |
public function Geometry()
Creates a new Geometry object.
| addFace | () | method |
public function addFace(face:Face):voidAdds a face element to the geometry object.
Parameters
face:Face — The face element to be added.
|
| addOnGeometryUpdate | () | method |
public function addOnGeometryUpdate(listener:Function):voidDefault method for adding a geometryUpdated event listener
Parameters
listener:Function — The listener function
|
| addOnMappingChange | () | method |
public function addOnMappingChange(listener:Function):voidDefault method for adding a mappingChanged event listener
Parameters
listener:Function — The listener function
|
| addOnMaterialUpdate | () | method |
public function addOnMaterialUpdate(listener:Function):voidDefault method for adding a materialUpdated event listener
Parameters
listener:Function — The listener function
|
| addSegment | () | method |
public function addSegment(segment:Segment):voidAdds a segment element to the geometry object.
Parameters
segment:Segment — The segment element to be added.
|
| addSprite | () | method |
public function addSprite(sprite3d:Sprite3D):voidAdds a 3d sprite element to the geometry object.
Parameters
sprite3d:Sprite3D — The 3d sprite element to be added.
|
| clone | () | method |
public function clone():GeometryDuplicates the geometry properties to another geometry object.
ReturnsGeometry — The new geometry instance with duplicated properties applied.
|
| invertFaces | () | method |
public function invertFaces():voidInverts the geometry of all face objects.
See also
| quarterFace | () | method |
public function quarterFace(face:Face, medians:Dictionary = null):voidDivides a face object into 4 equal sized face objects.
Parameters
face:Face — The face to split in 4 equal faces.
| |
medians:Dictionary (default = null) |
| quarterFaces | () | method |
public function quarterFaces():voidDivides all faces objects of a Mesh into 4 equal sized face objects. Used to segment a geometry in order to reduce affine persepective distortion.
See also
| removeFace | () | method |
public function removeFace(face:Face):voidRemoves a face element from the geometry object.
Parameters
face:Face — The face element to be removed.
|
| removeOnGeometryUpdate | () | method |
public function removeOnGeometryUpdate(listener:Function):voidDefault method for removing a geometryUpdated event listener
Parameters
listener:Function — The listener function
|
| removeOnMappingChange | () | method |
public function removeOnMappingChange(listener:Function):voidDefault method for removing a mappingChanged event listener
Parameters
listener:Function — The listener function
|
| removeOnMaterialUpdate | () | method |
public function removeOnMaterialUpdate(listener:Function):voidDefault method for removing a materialUpdated event listener
Parameters
listener:Function — The listener function
|
| removeSegment | () | method |
public function removeSegment(segment:Segment):voidRemoves a segment element from the geometry object.
Parameters
segment:Segment — The segment element to be removed.
|
| removeSprite | () | method |
public function removeSprite(sprite3d:Sprite3D):voidRemoves a 3d sprite element from the geometry object.
Parameters
sprite3d:Sprite3D — The 3d sprite element to be removed.
|
| splitFace | () | method |
public function splitFace(face:Face, side:int = 0):voidDivides a face object into 2 face objects.
Parameters
face:Face — The face to split in 2 faces.
| |
side:int (default = 0) — The side of the face to split in two. 0 , 1 or 2. (clockwize).
|
| splitFaces | () | method |
public function splitFaces(side:int = 0):voidDivides all faces objects of a Mesh into 2 face objects.
Parameters
side:int (default = 0) — The side of the faces to split in two. 0 , 1 or 2. (clockwize).
|
| triFace | () | method |
public function triFace(face:Face):voidDivides a face object into 3 face objects.
Parameters
face:Face — The face to split in 3 faces.
|
| triFaces | () | method |
public function triFaces():voidDivides all faces objects of a Mesh into 3 face objects.
| updateGeometry | () | method |
public function updateGeometry():voidUpdates the elements in the geometry object
See also
| updateMaterials | () | method |
public function updateMaterials(source:Object3D, view:View3D):voidUpdates the materials in the geometry object
Parameters
source:Object3D | |
view:View3D |
| updateVertex | () | method |
public function updateVertex(v:Vertex, x:Number, y:Number, z:Number, refreshNormals:Boolean = false):voidupdate vertex information.
Parameters
v:Vertex — The vertex object to update
| |
x:Number — The new x value for the vertex
| |
y:Number — The new y value for the vertex
| |
z:Number — The new z value for the vertex
| |
refreshNormals:Boolean (default = false) — [optional] Defines whether normals should be recalculated
|
| cycle | Event |
away3d.events.AnimationEventaway3d.events.AnimationEventDispatched when a single animation in a sequence completes.
| dimensionsChanged | Event |
away3d.events.GeometryEventaway3d.events.GeometryEventDispatched when the bounding dimensions of the geometry object change.
| sequenceDone | Event |
away3d.events.AnimationEventaway3d.events.AnimationEventDispatched when a sequence of animations completes.