Table of Contents

Struct SparseWeight8

Namespace
Aspose.CAD.FileFormats.GLB.Transforms
Assembly
Aspose.CAD.dll

Represents a sparse collection of non zero weight values, with a maximum of 8 weights.

public readonly struct SparseWeight8 : IEquatable<SparseWeight8>
Implements
Inherited Members

Remarks

SparseWeight8 is being used in two different contexts:

  • As an utility structure to define per vertex joint weights in mesh skinning.
  • As an animation key in morph targets; a mesh can have many morph targets, but realistically and due to GPU limitations, only up to 8 morph targets can be blended at the same time.
Constructors are designed so weightless values are not taken into account,
and duplicated indices are merged, so indices are expected to be unique.

Use static Create* methods to construct instances of SparseWeight8.

Fields

Index0
Index1
Index2
Index3
Index4
Index5
Index6
Index7
Weight0
Weight1
Weight2
Weight3
Weight4
Weight5
Weight6
Weight7

Properties

Count
IsWeightless

Gets a value indicating whether all the weights in this SparseWeight8 are zero.

this[int]
MaxIndex
WeightSum

Methods

Equals(SparseWeight8)
Equals(object)
Expand(int)
GetHashCode()
GetNormalized()
GetTrimmed(int)
ToString()

Operators

operator ==(SparseWeight8, SparseWeight8)
operator !=(SparseWeight8, SparseWeight8)