Package | away3d.core.base |
Class | public class Mesh |
Inheritance | Mesh ![]() ![]() |
Subclasses | AbstractPrimitive, AbstractWirePrimitive, Animator, BezierPatch, Lathe, LineSegment, PathDuplicator, PathExtrude, SeaTurtle, SegmentsExtrude, SkinExtrude, Skybox, Skybox6, Triangle |
Property | Defined by | ||
---|---|---|---|
activePrefix : String [read-only]
return the prefix of the animation actually started.
| Mesh | ||
![]() | alpha : Number
An optional alpha value that can be applied to the 3d object.
| Object3D | |
![]() | animationLibrary : AnimationLibrary
Reference container for all animations used in the container.
| Object3D | |
back : ITriangleMaterial
Defines a triangle material to be used for the backface of all faces in the 3d object.
| Mesh | ||
billboardMaterial : IBillboardMaterial | Mesh | ||
billboards : Array [read-only]
Returns an array of the billboards contained in the mesh object.
| Mesh | ||
![]() | blendMode : String
An optional blend mode that can be applied to the 3d object.
| Object3D | |
bothsides : Boolean
Indicates whether both the front and reverse sides of a face should be rendered.
| Mesh | ||
![]() | boundingRadius : Number
Returns the bounding radius of the 3d object
| Object3D | |
![]() | center : Vertex | Object3D | |
![]() | debugbb : Boolean
Indicates whether a debug bounding box should be rendered around the 3d object.
| Object3D | |
![]() | debugBoundingBox : WireCube | Object3D | |
![]() | debugBoundingSphere : WireSphere | Object3D | |
![]() | debugbs : Boolean
Indicates whether a debug bounding sphere should be rendered around the 3d object.
| Object3D | |
elements : Array [read-only]
Returns an array of all elements contained in the mesh object.
| Mesh | ||
![]() | eulers : Number3D
Defines the rotation of the 3d object as a
Number3D object containing euler angles for rotation around x, y and z axis. | Object3D | |
![]() | extra : Object
An optional untyped object that can contain used-defined properties
| Object3D | |
faceMaterial : ITriangleMaterial | Mesh | ||
faces : Array [read-only]
Returns an array of the faces contained in the mesh object.
| Mesh | ||
![]() | filters : Array
An optional array of filters that can be applied to the 3d object.
| Object3D | |
fps : int [write-only]
Determines the frames per second at which the animation will run.
| Mesh | ||
frame : int
Indicates the current frame of animation
| Mesh | ||
geometry : Geometry
Defines the geometry object used for the mesh.
| Mesh | ||
![]() | geometryLibrary : GeometryLibrary
Reference container for all geometries used in the container.
| Object3D | |
hasCycleEvent : Boolean [read-only]
Indicates whether the animation has a cycle event listener
| Mesh | ||
hasSequenceEvent : Boolean [read-only]
Indicates whether the animation has a sequencedone event listener
| Mesh | ||
indexes : Array
Placeholder for md2 frame indexes
| Mesh | ||
![]() | inverseSceneTransform : Matrix3D
Returns the inverse of sceneTransform.
| Object3D | |
isRunning : Boolean [read-only]
Indicates whether the animation is currently running.
| Mesh | ||
![]() | lightarray : ILightConsumer
returns the array of lights contained inside the container.
| Object3D | |
loop : Boolean [write-only]
Determines whether the animation will loop.
| Mesh | ||
material : IMaterial
Defines the material used to render the faces, segments or billboards in the geometry object.
| Mesh | ||
![]() | materialLibrary : MaterialLibrary
Reference container for all materials used in the container.
| Object3D | |
![]() | maxX : Number
Returns the maximum x value of the 3d object
| Object3D | |
![]() | maxY : Number
Returns the maximum y value of the 3d object
| Object3D | |
![]() | maxZ : Number
Returns the maximum z value of the 3d object
| Object3D | |
![]() | minX : Number
Returns the minimum x value of the 3d object
| Object3D | |
![]() | minY : Number
Returns the minimum y value of the 3d object
| Object3D | |
![]() | minZ : Number
Returns the minimum z value of the 3d object
| Object3D | |
![]() | mouseEnabled : Boolean = true
Defines whether mouse events are received on the 3d object
| Object3D | |
![]() | name : String
An optional name string for the 3d object.
| Object3D | |
![]() | objectDepth : Number
Boundary depth of the 3d object
return The depth of the mesh
| Object3D | |
![]() | objectHeight : Number
Boundary height of the 3d object
return The height of the mesh
| Object3D | |
![]() | objectWidth : Number
Boundary width of the 3d object
return The width of the object
| Object3D | |
outline : ISegmentMaterial
Defines a segment material to be used for outlining the 3d object.
| Mesh | ||
![]() | ownCanvas : Boolean
Defines whether the contents of the 3d object are rendered using it's own render session
| Object3D | |
![]() | ownLights : Boolean
Defines whether the children of the container are rendered using it's own lights.
| Object3D | |
![]() | ownSession : AbstractRenderSession
Defines a unique render session for the 3d object.
| Object3D | |
![]() | parent : ObjectContainer3D
Defines the parent of the 3d object.
| Object3D | |
![]() | pivotPoint : Number3D
Defines the local point around which the object rotates.
| Object3D | |
![]() | pivotZero : Boolean | Object3D | |
![]() | position : Number3D
Defines the position of the 3d object, relative to the local coordinates of the parent
ObjectContainer3D . | Object3D | |
![]() | projectorType : String | Object3D | |
![]() | pushback : Boolean
Elements use their furthest point from the camera when z-sorting
| Object3D | |
![]() | pushfront : Boolean
Elements use their nearest point to the camera when z-sorting
| Object3D | |
![]() | renderer : IPrimitiveConsumer
An optional renderer object that can be used to render the contents of the object.
| Object3D | |
![]() | rotationX : Number
Defines the euler angle of rotation of the 3d object around the x-axis, relative to the local coordinates of the parent
ObjectContainer3D . | Object3D | |
![]() | rotationY : Number
Defines the euler angle of rotation of the 3d object around the y-axis, relative to the local coordinates of the parent
ObjectContainer3D . | Object3D | |
![]() | rotationZ : Number
Defines the euler angle of rotation of the 3d object around the z-axis, relative to the local coordinates of the parent
ObjectContainer3D . | Object3D | |
![]() | scaleX : Number
Defines the scale of the 3d object along the x-axis, relative to local coordinates.
| Object3D | |
![]() | scaleY : Number
Defines the scale of the 3d object along the y-axis, relative to local coordinates.
| Object3D | |
![]() | scaleZ : Number
Defines the scale of the 3d object along the z-axis, relative to local coordinates.
| Object3D | |
![]() | scene : Scene3D
Returns the parent scene of the 3d object
| Object3D | |
![]() | scenePivotPoint : Number3D | Object3D | |
![]() | scenePosition : Number3D
Returns the position of the 3d object, relative to the global coordinates of the
Scene3D object. | Object3D | |
![]() | sceneTransform : Matrix3D
Returns the transformation of the 3d object, relative to the global coordinates of the
Scene3D object. | Object3D | |
segmentMaterial : ISegmentMaterial | Mesh | ||
segments : Array [read-only]
Returns an array of the segments contained in the mesh object.
| Mesh | ||
![]() | session : AbstractRenderSession
The render session used by the 3d object
| Object3D | |
smooth : Boolean [write-only]
Determines whether the animation will smooth motion (interpolate) between frames.
| Mesh | ||
![]() | transform : Matrix3D
Defines the transformation of the 3d object, relative to the local coordinates of the parent
ObjectContainer3D . | Object3D | |
transitionValue : Number | Mesh | ||
type : String = "mesh"
String defining the type of class used to generate the mesh.
| Mesh | ||
url : String
String defining the source of the mesh.
| Mesh | ||
![]() | useHandCursor : Boolean = false
Defines whether a hand cursor is displayed when the mouse rolls over the 3d object.
| Object3D | |
vertices : Array [read-only]
Returns an array of the vertices contained in the mesh object.
| Mesh | ||
![]() | visible : Boolean
Defines whether the 3d object is visible in the scene
| Object3D | |
![]() | x : Number
Defines the x coordinate of the 3d object relative to the local coordinates of the parent
ObjectContainer3D . | Object3D | |
![]() | y : Number
Defines the y coordinate of the 3d object relative to the local coordinates of the parent
ObjectContainer3D . | Object3D | |
![]() | z : Number
Defines the z coordinate of the 3d object relative to the local coordinates of the parent
ObjectContainer3D . | Object3D |
Method | Defined by | ||
---|---|---|---|
Mesh
(init:Object = null)
Creates a new
BaseMesh object. | Mesh | ||
Adds a billboard object to the mesh object.
| Mesh | ||
Adds a face object to the mesh object.
| Mesh | ||
addOnCycle(listener:Function):void
Default method for adding a cycle event listener
| Mesh | ||
![]() |
addOnDimensionsChange(listener:Function):void
Default method for adding a dimensionschanged event listener
| Object3D | |
![]() |
addOnMouseDown(listener:Function):void
Default method for adding a mouseDown3D event listener
| Object3D | |
![]() |
addOnMouseMove(listener:Function):void
Default method for adding a mouseMove3D event listener
| Object3D | |
![]() |
addOnMouseOut(listener:Function):void
Default method for adding a mouseOut3D event listener
| Object3D | |
![]() |
addOnMouseOver(listener:Function):void
Default method for adding a mouseOver3D event listener
| Object3D | |
![]() |
addOnMouseUp(listener:Function):void
Default method for adding a mouseUp3D event listener
| Object3D | |
![]() |
addOnParentUpdate(listener:Function):void
Default method for adding a parentupdated event listener
| Object3D | |
![]() |
addOnRollOut(listener:Function):void
Default method for adding a rollOut3D event listener
| Object3D | |
![]() |
addOnRollOver(listener:Function):void
Default method for adding a rollOver3D event listener
| Object3D | |
![]() |
addOnSceneChange(listener:Function):void
Default method for adding a scenechanged event listener
| Object3D | |
![]() |
addOnSceneTransformChange(listener:Function):void
Default method for adding a scenetransformchanged event listener
| Object3D | |
addOnSequenceDone(listener:Function):void
Default method for adding a sequenceDone event listener
| Mesh | ||
![]() |
addOnSessionChange(listener:Function):void
Default method for adding a sessionchanged event listener
| Object3D | |
![]() |
addOnTransformChange(listener:Function):void
Default method for adding a transformchanged event listener
| Object3D | |
Adds a segment object to the mesh object.
| Mesh | ||
applyPosition(dx:Number, dy:Number, dz:Number):void
Apply the given position to the geometry without altering the appearance of the mesh
| Mesh | ||
applyRotations():void
Apply the local rotations to the geometry without altering the appearance of the mesh
| Mesh | ||
asAS3Class(classname:String = null, packagename:String = "", round:Boolean = false, animated:Boolean = false):String
Returns a formatted string containing a self contained AS3 class definition that can be used to re-create the mesh.
| Mesh | ||
asXML():XML
Returns an xml representation of the mesh
| Mesh | ||
Duplicates the mesh properties to another 3d object
| Mesh | ||
Duplicates the mesh properties to another 3d object, including geometry
| Mesh | ||
![]() |
Calulates the absolute distance between the local 3d object position and the position of the given 3d object
| Object3D | |
gotoAndPlay(value:int):void
Starts playing the animation at the specified frame.
| Mesh | ||
gotoAndStop(value:int):void
Brings the animation to the specifed frame and stops it there.
| Mesh | ||
invertFaces():void
Inverts the geometry of all face objects.
| Mesh | ||
![]() |
Rotates the 3d object around to face a point defined relative to the local coordinates of the parent
ObjectContainer3D . | Object3D | |
![]() |
moveBackward(distance:Number):void
Moves the 3d object backwards along it's local z axis
| Object3D | |
![]() |
moveDown(distance:Number):void
Moves the 3d object backwards along it's local y axis
| Object3D | |
![]() |
moveForward(distance:Number):void
Moves the 3d object forwards along it's local z axis
| Object3D | |
![]() |
moveLeft(distance:Number):void
Moves the 3d object backwards along it's local x axis
| Object3D | |
![]() |
movePivot(dx:Number, dy:Number, dz:Number):void
Moves the local point around which the object rotates.
| Object3D | |
![]() |
moveRight(distance:Number):void
Moves the 3d object forwards along it's local x axis
| Object3D | |
![]() |
moveTo(dx:Number, dy:Number, dz:Number):void
Moves the 3d object directly to a point in space
| Object3D | |
![]() |
moveUp(distance:Number):void
Moves the 3d object forwards along it's local y axis
| Object3D | |
![]() |
pitch(angle:Number):void
Rotates the 3d object around it's local x-axis
| Object3D | |
Plays a sequence of frames
| Mesh | ||
playFrames(prefixes:Array, fps:uint, smooth:Boolean = true, loop:Boolean = false):void
Plays a sequence of frames.
| Mesh | ||
Divides a face object into 4 equal sized face objects.
| Mesh | ||
quarterFaces():void
Divides all faces objects of a Mesh into 4 equal sized face objects.
| Mesh | ||
Removes a billboard object from the mesh object.
| Mesh | ||
Removes a face object from the mesh object.
| Mesh | ||
removeOnCycle(listener:Function):void
Default method for removing a cycle event listener
| Mesh | ||
![]() |
removeOnDimensionsChange(listener:Function):void
Default method for removing a dimensionschanged event listener
| Object3D | |
![]() |
removeOnMouseDown(listener:Function):void
Default method for removing a mouseDown3D event listener
| Object3D | |
![]() |
removeOnMouseMove(listener:Function):void
Default method for removing a mouseMove3D event listener
| Object3D | |
![]() |
removeOnMouseOut(listener:Function):void
Default method for removing a mouseOut3D event listener
| Object3D | |
![]() |
removeOnMouseOver(listener:Function):void
Default method for removing a mouseOver3D event listener
| Object3D | |
![]() |
removeOnMouseUp(listener:Function):void
Default method for removing a mouseUp3D event listener
| Object3D | |
![]() |
removeOnParentUpdate(listener:Function):void
Default method for removing a parentupdated event listener
| Object3D | |
![]() |
removeOnRollOut(listener:Function):void
Default method for removing a rollOut3D event listener
| Object3D | |
![]() |
removeOnRollOver(listener:Function):void
Default method for removing a rollOver3D event listener
| Object3D | |
![]() |
removeOnSceneChange(listener:Function):void
Default method for removing a scenechanged event listener
| Object3D | |
![]() |
removeOnSceneTransformChange(listener:Function):void
Default method for removing a scenetransformchanged event listener
| Object3D | |
removeOnSequenceDone(listener:Function):void
Default method for removing a sequenceDone event listener
| Mesh | ||
![]() |
removeOnSessionChange(listener:Function):void
Default method for removing a sessionchanged event listener
| Object3D | |
![]() |
removeOnTransformChange(listener:Function):void
Default method for removing a transformchanged event listener
| Object3D | |
Removes a segment object from the mesh object.
| Mesh | ||
![]() |
roll(angle:Number):void
Rotates the 3d object around it's local z-axis
| Object3D | |
![]() |
Rotates the 3d object around an axis by a defined angle
| Object3D | |
![]() |
rotateTo(ax:Number, ay:Number, az:Number):void
Rotates the 3d object directly to a euler angle
| Object3D | |
![]() |
scale(scale:Number):void
Scales the contents of the 3d object.
| Object3D | |
setPlaySequences(playlist:Array, loopLast:Boolean = false):void
Passes an array of animationsequence objects to be added to the animation.
| Mesh | ||
Divides a face object into 2 face objects.
| Mesh | ||
splitFaces(side:int = 0):void
Divides all faces objects of a Mesh into 2 face objects.
| Mesh | ||
![]() |
tick(time:int):void
Called by the
TickTraverser . | Object3D | |
![]() |
toString():String
Used to trace the values of a 3d object.
| Object3D | |
![]() |
Moves the 3d object along a vector by a defined length
| Object3D | |
![]() |
Used when traversing the scenegraph
| Object3D | |
Divides a face object into 3 face objects.
| Mesh | ||
triFaces():void
Divides all faces objects of a Mesh into 3 face objects.
| Mesh | ||
Updates the materials in the mesh object
| Mesh | ||
![]() |
updateObject():void
| Object3D | |
![]() |
updateSession():void
| Object3D | |
update vertex information.
| Mesh | ||
![]() |
yaw(angle:Number):void
Rotates the 3d object around it's local y-axis
| Object3D |
Method | Defined by | ||
---|---|---|---|
Mesh | |||
updateDimensions():void
| Mesh | ||
![]() |
updateTransform():void
| Object3D |
Event | Summary | Defined by | ||
---|---|---|---|---|
Dispatched when a single animation in a sequence completes. | Mesh | |||
![]() | Dispatched when the bounding dimensions of the 3d object changes. | Object3D | ||
![]() | Dispatched when a user presses the left hand mouse button while the cursor is over the 3d object. | Object3D | ||
![]() | Dispatched when a user moves the cursor while it is over the 3d object. | Object3D | ||
![]() | Dispatched when a user moves the cursor away from the 3d object. | Object3D | ||
![]() | Dispatched when a user moves the cursor over the 3d object. | Object3D | ||
![]() | Dispatched when a user releases the left hand mouse button while the cursor is over the 3d object. | Object3D | ||
![]() | Dispatched when a user rolls out of the 3d object. | Object3D | ||
![]() | Dispatched when a user rolls over the 3d object. | Object3D | ||
![]() | Dispatched when the parent scene of the 3d object changes. | Object3D | ||
![]() | Dispatched when the scene transform matrix of the 3d object changes. | Object3D | ||
Dispatched when a sequence of animations completes. | Mesh | |||
![]() | Dispatched when the render session property of the 3d object changes. | Object3D | ||
![]() | Dispatched when the render session property of the 3d object updates its contents. | Object3D | ||
![]() | Dispatched when the local transform matrix of the 3d object changes. | Object3D |
activePrefix | property |
activePrefix:String
[read-only]return the prefix of the animation actually started.
Implementation public function get activePrefix():String
back | property |
back:ITriangleMaterial
[read-write]Defines a triangle material to be used for the backface of all faces in the 3d object.
Implementation public function get back():ITriangleMaterial
public function set back(value:ITriangleMaterial):void
billboardMaterial | property |
billboardMaterial:IBillboardMaterial
[read-write]Implementation
public function get billboardMaterial():IBillboardMaterial
public function set billboardMaterial(value:IBillboardMaterial):void
billboards | property |
billboards:Array
[read-only]Returns an array of the billboards contained in the mesh object.
Implementation public function get billboards():Array
bothsides | property |
public var bothsides:Boolean
Indicates whether both the front and reverse sides of a face should be rendered.
elements | property |
elements:Array
[read-only]Returns an array of all elements contained in the mesh object.
Implementation public function get elements():Array
faceMaterial | property |
faceMaterial:ITriangleMaterial
[read-write]Implementation
public function get faceMaterial():ITriangleMaterial
public function set faceMaterial(value:ITriangleMaterial):void
faces | property |
faces:Array
[read-only]Returns an array of the faces contained in the mesh object.
Implementation public function get faces():Array
fps | property |
fps:int
[write-only]Determines the frames per second at which the animation will run.
Implementation public function set fps(value:int):void
frame | property |
frame:int
[read-write]Indicates the current frame of animation
Implementation public function get frame():int
public function set frame(value:int):void
geometry | property |
geometry:Geometry
[read-write]Defines the geometry object used for the mesh.
Implementation public function get geometry():Geometry
public function set geometry(value:Geometry):void
hasCycleEvent | property |
hasCycleEvent:Boolean
[read-only]Indicates whether the animation has a cycle event listener
Implementation public function get hasCycleEvent():Boolean
hasSequenceEvent | property |
hasSequenceEvent:Boolean
[read-only]Indicates whether the animation has a sequencedone event listener
Implementation public function get hasSequenceEvent():Boolean
indexes | property |
public var indexes:Array
Placeholder for md2 frame indexes
isRunning | property |
isRunning:Boolean
[read-only]Indicates whether the animation is currently running.
Implementation public function get isRunning():Boolean
loop | property |
loop:Boolean
[write-only]Determines whether the animation will loop.
Implementation public function set loop(value:Boolean):void
material | property |
material:IMaterial
[read-write]Defines the material used to render the faces, segments or billboards in the geometry object. Individual material settings on faces, segments and billboards will override this setting.
Implementation public function get material():IMaterial
public function set material(value:IMaterial):void
See also
outline | property |
public var outline:ISegmentMaterial
Defines a segment material to be used for outlining the 3d object.
segmentMaterial | property |
segmentMaterial:ISegmentMaterial
[read-write]Implementation
public function get segmentMaterial():ISegmentMaterial
public function set segmentMaterial(value:ISegmentMaterial):void
segments | property |
segments:Array
[read-only]Returns an array of the segments contained in the mesh object.
Implementation public function get segments():Array
smooth | property |
smooth:Boolean
[write-only]Determines whether the animation will smooth motion (interpolate) between frames.
Implementation public function set smooth(value:Boolean):void
transitionValue | property |
transitionValue:Number
[read-write]Implementation
public function get transitionValue():Number
public function set transitionValue(value:Number):void
type | property |
public var type:String = "mesh"
String defining the type of class used to generate the mesh. Used to display information in the stats panel
See also
url | property |
public var url:String
String defining the source of the mesh. If the mesh has been created internally, the string is used to display the package name of the creating object. Used to display information in the stats panel
See also
vertices | property |
vertices:Array
[read-only]Returns an array of the vertices contained in the mesh object.
Implementation public function get vertices():Array
Mesh | () | constructor |
public function Mesh(init:Object = null)
Parameters
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
outline:SegmentMaterial | |
material:Material | |
faceMaterial:Material | |
segmentMaterial:Material | |
billboardMaterial:Material | |
back:Material | |
bothsides:Boolean (default = false) |
addBillboard | () | method |
public function addBillboard(billboard:Billboard):void
Adds a billboard object to the mesh object.
Parametersbillboard:Billboard — The billboard object to be added.
|
addFace | () | method |
public function addFace(face:Face):void
Adds a face object to the mesh object.
Parametersface:Face — The face object to be added.
|
addOnCycle | () | method |
public function addOnCycle(listener:Function):void
Default method for adding a cycle event listener
Parameterslistener:Function — The listener function
|
addOnSequenceDone | () | method |
public function addOnSequenceDone(listener:Function):void
Default method for adding a sequenceDone event listener
Parameterslistener:Function — The listener function
|
addSegment | () | method |
public function addSegment(segment:Segment):void
Adds a segment object to the mesh object.
Parameterssegment:Segment — The segment object to be added.
|
applyPosition | () | method |
public override function applyPosition(dx:Number, dy:Number, dz:Number):void
Apply the given position to the geometry without altering the appearance of the mesh
Parametersdx:Number |
|
dy:Number |
|
dz:Number |
applyRotations | () | method |
public override function applyRotations():void
Apply the local rotations to the geometry without altering the appearance of the mesh
asAS3Class | () | method |
public function asAS3Class(classname:String = null, packagename:String = "", round:Boolean = false, animated:Boolean = false):String
Returns a formatted string containing a self contained AS3 class definition that can be used to re-create the mesh.
Parametersclassname:String (default = null ) — [optional] Defines the class name used in the output string. Defaults to Away3DObject .
|
|
packagename:String (default = " ") — [optional] Defines the package name used in the output string. Defaults to no package.
|
|
round:Boolean (default = false ) — [optional] Rounds all values to 4 decimal places. Defaults to false.
|
|
animated:Boolean (default = false ) — [optional] Defines whether animation data should be saved. Defaults to false.
|
String — A string to be pasted into a new .as file
|
asXML | () | method |
public function asXML():XML
Returns an xml representation of the mesh
ReturnsXML — An xml object containing mesh information
|
clone | () | method |
public override function clone(object:Object3D = null):Object3D
Duplicates the mesh properties to another 3d object
Parametersobject:Object3D (default = null ) — [optional] The new object instance into which all properties are copied. The default is Mesh .
|
Object3D —
The new object instance with duplicated properties applied.
|
cloneAll | () | method |
public function cloneAll(object:Object3D = null):Object3D
Duplicates the mesh properties to another 3d object, including geometry
Parametersobject:Object3D (default = null ) — [optional] The new object instance into which all properties are copied. The default is Mesh .
|
Object3D —
The new object instance with duplicated properties applied.
|
getDefaultMaterial | () | method |
gotoAndPlay | () | method |
public function gotoAndPlay(value:int):void
Starts playing the animation at the specified frame.
Parametersvalue:int — A number representing the frame number.
|
gotoAndStop | () | method |
public function gotoAndStop(value:int):void
Brings the animation to the specifed frame and stops it there.
Parametersvalue:int — A number representing the frame number.
|
invertFaces | () | method |
public function invertFaces():void
Inverts the geometry of all face objects.
See also
play | () | method |
public function play(sequence:AnimationSequence):void
Plays a sequence of frames
Parameterssequence:AnimationSequence — The animationsequence to play
|
playFrames | () | method |
public function playFrames(prefixes:Array, fps:uint, smooth:Boolean = true, loop:Boolean = false):void
Plays a sequence of frames. Note that the framenames must be be already existing in the system before you can use this handler
Parametersprefixes:Array — Array. The list of framenames to be played
|
|
fps:uint — uint: frames per second
|
|
smooth:Boolean (default = true ) — [optional] Boolean. if the animation must interpolate. Default = true.
|
|
loop:Boolean (default = false ) — [optional] Boolean. if the animation must loop. Default = false.
|
quarterFace | () | method |
public function quarterFace(face:Face):void
Divides a face object into 4 equal sized face objects.
Parametersface:Face — The face to split in 4 equal faces.
|
quarterFaces | () | method |
public function quarterFaces():void
Divides 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
removeBillboard | () | method |
public function removeBillboard(billboard:Billboard):void
Removes a billboard object from the mesh object.
Parametersbillboard:Billboard — The billboard object to be removed.
|
removeFace | () | method |
public function removeFace(face:Face):void
Removes a face object from the mesh object.
Parametersface:Face — The face object to be removed.
|
removeOnCycle | () | method |
public function removeOnCycle(listener:Function):void
Default method for removing a cycle event listener
Parameterslistener:Function — The listener function
|
removeOnSequenceDone | () | method |
public function removeOnSequenceDone(listener:Function):void
Default method for removing a sequenceDone event listener
Parameterslistener:Function — The listener function
|
removeSegment | () | method |
public function removeSegment(segment:Segment):void
Removes a segment object from the mesh object.
Parameterssegment:Segment — The segment object to be removed.
|
setPlaySequences | () | method |
public function setPlaySequences(playlist:Array, loopLast:Boolean = false):void
Passes an array of animationsequence objects to be added to the animation.
Parametersplaylist:Array — An array of animationsequence objects.
|
|
loopLast:Boolean (default = false ) — [optional] Determines whether the last sequence will loop. Defaults to false.
|
splitFace | () | method |
public function splitFace(face:Face, side:int = 0):void
Divides a face object into 2 face objects.
Parametersface: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):void
Divides all faces objects of a Mesh into 2 face objects.
Parametersside:int (default = 0 ) — The side of the faces to split in two. 0 , 1 or 2. (clockwize).
|
triFace | () | method |
public function triFace(face:Face):void
Divides a face object into 3 face objects.
Parametersface:Face — The face to split 3 faces.
|
triFaces | () | method |
public function triFaces():void
Divides all faces objects of a Mesh into 3 face objects.
updateDimensions | () | method |
protected override function updateDimensions():void
updateMaterials | () | method |
public function updateMaterials(source:Object3D, view:View3D):void
Updates the materials in the mesh object
Parameterssource:Object3D |
|
view:View3D |
updateVertex | () | method |
public function updateVertex(v:Vertex, x:Number, y:Number, z:Number, refreshNormals:Boolean = false):void
update vertex information.
Parametersv:Vertex — v The vertex object to update
|
|
x:Number — x The new x value for the vertex
|
|
y:Number — y The new y value for the vertex
|
|
z:Number — z The new z value for the vertex
|
|
refreshNormals:Boolean (default = false ) — refreshNormals [optional] Defines whether normals should be recalculated
|
cycle | event |
away3d.events.AnimationEvent
Dispatched when a single animation in a sequence completes.
sequenceDone | event |