C# Class KinectStreamConverter.AssimpUtil

This class gather methods allowing to facilitate manipulations with assimp objects
ファイルを表示 Open project: loic-lavergne/mckineap

Public Methods

Method Description
CopyAnimationInto ( Assimp.Animation animSource, Assimp.Animation animTarget ) : Assimp.Animation
DuplicateAnimation ( Assimp.Animation anim ) : Assimp.Animation

Because there is no copy constructor inside Assimp.Net we decided to implemented or own copy method for animation. NB: This is a partial copy because we only copy what we are interested by

DuplicateNodeTree ( Assimp.Node rootNode ) : Assimp.Node
FindNodeAnim ( Assimp.Animation anim, string nodeName ) : Assimp.NodeAnimationChannel

Allow to find a NodeAnimationChannel inside a NodeAnimationChannels

GetRootNode ( Assimp.Node myNode ) : Assimp.Node
localPosition ( Vector3D posStart, Vector3D &posEnd ) : void
localRotation ( Quaternion rotStart, Quaternion &rotEnd ) : void

Private Methods

Method Description
CopyNodeTree ( Assimp.Node oriParentNode, Assimp.Node copyRootNode ) : void

Method Details

CopyAnimationInto() public static method

public static CopyAnimationInto ( Assimp.Animation animSource, Assimp.Animation animTarget ) : Assimp.Animation
animSource Assimp.Animation
animTarget Assimp.Animation
return Assimp.Animation

DuplicateAnimation() public static method

Because there is no copy constructor inside Assimp.Net we decided to implemented or own copy method for animation. NB: This is a partial copy because we only copy what we are interested by
public static DuplicateAnimation ( Assimp.Animation anim ) : Assimp.Animation
anim Assimp.Animation
return Assimp.Animation

DuplicateNodeTree() public static method

public static DuplicateNodeTree ( Assimp.Node rootNode ) : Assimp.Node
rootNode Assimp.Node
return Assimp.Node

FindNodeAnim() public static method

Allow to find a NodeAnimationChannel inside a NodeAnimationChannels
public static FindNodeAnim ( Assimp.Animation anim, string nodeName ) : Assimp.NodeAnimationChannel
anim Assimp.Animation The animation in which we are looking for our NodeAnimationChannel
nodeName string The node anim name that we are looking for
return Assimp.NodeAnimationChannel

GetRootNode() public static method

public static GetRootNode ( Assimp.Node myNode ) : Assimp.Node
myNode Assimp.Node
return Assimp.Node

localPosition() public static method

public static localPosition ( Vector3D posStart, Vector3D &posEnd ) : void
posStart Vector3D
posEnd Vector3D
return void

localRotation() public static method

public static localRotation ( Quaternion rotStart, Quaternion &rotEnd ) : void
rotStart Quaternion
rotEnd Quaternion
return void