Packageflare.modifiers
Classpublic class SkinModifier
InheritanceSkinModifier Inheritance Modifier Inheritance Object

Contains all the information needed to perform skinning deformations.



Public Properties
 PropertyDefined By
  bones : Vector.<Pivot3D>
List of all bones.
SkinModifier
  invBoneMatrix : Vector.<Matrix3D>
Initial transform for eahc bone.
SkinModifier
  mesh : Mesh3D
A reference to the skinned mesh
SkinModifier
  root : Pivot3D
The main bone node.
SkinModifier
  skinData : Vector.<Vector.<int>>
Contains the bone indices for each surface.
SkinModifier
  totalFrames : int
SkinModifier
Public Methods
 MethodDefined By
  
SkinModifier
  
addBone(pivot:Pivot3D):int
Adds a new bone so that vertices can be then bound to it.
SkinModifier
 Inherited
Modifier
 Inherited
draw(mesh:Mesh3D):void
Modifier
  
update():void
SkinModifier
  
updatePolys(mesh:Mesh3D):void
This method updates the mesh boundings and Poly3D's structures for a specific mesh currentFrame.
SkinModifier
Property Detail
bonesproperty
public var bones:Vector.<Pivot3D>

List of all bones.

invBoneMatrixproperty 
public var invBoneMatrix:Vector.<Matrix3D>

Initial transform for eahc bone.

meshproperty 
public var mesh:Mesh3D

A reference to the skinned mesh

rootproperty 
public var root:Pivot3D

The main bone node.

skinDataproperty 
public var skinData:Vector.<Vector.<int>>

Contains the bone indices for each surface.

totalFramesproperty 
totalFrames:int


Implementation
    public function get totalFrames():int
    public function set totalFrames(value:int):void
Constructor Detail
SkinModifier()Constructor
public function SkinModifier()



Method Detail
addBone()method
public function addBone(pivot:Pivot3D):int

Adds a new bone so that vertices can be then bound to it.

Parameters

pivot:Pivot3D — Pivot3D object that is to perform the bone function.

Returns
int — The added bone index.
update()method 
public function update():void

updatePolys()method 
public function updatePolys(mesh:Mesh3D):void

This method updates the mesh boundings and Poly3D's structures for a specific mesh currentFrame. This process it's really expensive and not should be used in realtime applications. It emulates the skinned surfaces by software and calculates all the vertex, polygons and normals.

Parameters

mesh:Mesh3D — The mesh associated to the skinned surfaces.