Method AddPrimitive
AddPrimitive(uint, string, MeshResult, uint[], uint?, float[], int)
Called for adding a Primitive/Mesh to a Node.
Declaration
public virtual void AddPrimitive(uint nodeIndex, string meshName, MeshResult meshResult, uint[] joints = null, uint? rootJoint = null, float[] morphTargetWeights = null, int primitiveNumeration = 0)
Parameters
Type | Name | Description |
---|---|---|
uint | nodeIndex | Index of the node |
string | meshName | Mesh's name |
MeshResult | meshResult | The converted Mesh |
uint[] | joints | If a skin was attached, the joint indices. Null otherwise |
uint? | rootJoint | Root joint node index, if present |
float[] | morphTargetWeights | Morph target weights, if present |
int | primitiveNumeration | Primitives are numerated per Node, starting with 0 |