BoneWeightCollection.NormalizeWeights Method ()
Normalizes the contents of the weights list.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
public void NormalizeWeights ()
Remarks
Normalization does the following:
- Sorts weights such that the most significant weight is first.
- Removes zero-value entries.
- Adjusts values so the sum equals one.
Throws InvalidContentException if all weights are zero.
See Also
Reference
BoneWeightCollection Class
BoneWeightCollection Members
NormalizeWeights
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows XP SP2, Windows Vista