C# Class Mckineap.Utilities.Converters.MergeAcceptance

Runs an acceptance algorithm for the 3D Model and Animation merge.
Datei anzeigen Open project: loic-lavergne/mckineap

Public Methods

Method Description
Run ( Model3D sourceModel3D, Model3D destinationModel3D ) : bool

Private Methods

Method Description
AreNodesIdentical ( Assimp.Node node, Assimp.Node otherNode ) : bool

Checks whether the two nodes are identical.

CheckRequirements ( Assimp.Scene sourceScene, Assimp.Scene destinationScene, int &sourceNodeCount, int &destinationNodeCount ) : bool

Checks whether the requirements for the merge acceptance algorithm are met with the two scenes.
TODO: Explain what are the requirements.

CompareNodes ( Assimp.Node node, Assimp.Node otherNode, double depthWeightThreshold, double &deltaDepth, double &deltaPercentage ) : void
CountNodeNumber ( Assimp.Node node, int &nodeNumber ) : void

Counts recursively the number of nodes in a node architecture.
Each node contains a pointer to the next nodes in a node architecture.

GetNodeArchitecture ( Model3D sourceModel3D, Model3D destinationModel3D ) : bool
MaxNode ( int nodeCount, int otherNodeCount ) : int

Returns the highest node count between the two node counts.

MinNode ( int nodeCount, int otherNodeCount ) : int

Returns the lowest node count between the two node counts.

Method Details

Run() public static method

public static Run ( Model3D sourceModel3D, Model3D destinationModel3D ) : bool
sourceModel3D Mckineap.Models.Engine3D.Model3D
destinationModel3D Mckineap.Models.Engine3D.Model3D
return bool