| Package | flare.modifiers |
| Class | public class SkinModifier |
| Inheritance | SkinModifier Modifier Object |
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
| SkinModifier | |||
Adds a new bone so that vertices can be then bound to it. | SkinModifier | ||
![]() | Modifier | ||
![]() | Modifier | ||
update():void | SkinModifier | ||
updatePolys(mesh:Mesh3D):void
This method updates the mesh boundings and Poly3D's structures for a specific mesh currentFrame. | SkinModifier | ||
| bones | property |
public var bones:Vector.<Pivot3D>List of all bones.
| invBoneMatrix | property |
public var invBoneMatrix:Vector.<Matrix3D>Initial transform for eahc bone.
| mesh | property |
public var mesh:Mesh3DA reference to the skinned mesh
| root | property |
public var root:Pivot3DThe main bone node.
| skinData | property |
public var skinData:Vector.<Vector.<int>>Contains the bone indices for each surface.
| totalFrames | property |
totalFrames:int public function get totalFrames():int public function set totalFrames(value:int):void| SkinModifier | () | Constructor |
public function SkinModifier()| addBone | () | method |
public function addBone(pivot:Pivot3D):intAdds a new bone so that vertices can be then bound to it.
Parameters
pivot:Pivot3D — Pivot3D object that is to perform the bone function.
|
int — The added bone index.
|
| update | () | method |
public function update():void| updatePolys | () | method |
public function updatePolys(mesh:Mesh3D):voidThis 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.
|