Search Results for

    Show / Hide Table of Contents

    Struct BoneWeightComparer

    Provides a comparer for BoneWeight1 instances that sorts them by weight in descending order.

    Namespace: TriLibCore.Geometries
    Assembly: TriLibCore.Source.dll
    Syntax
    public struct BoneWeightComparer
    Remarks

    This comparer is typically used to prioritize the most influential bone weights when processing or normalizing skinning data.

    Methods

    Compare(BoneWeight1, BoneWeight1)

    Compares two BoneWeight1 instances based on their weight.

    Declaration
    public int Compare(BoneWeight1 a, BoneWeight1 b)
    Parameters
    Type Name Description
    BoneWeight1 a

    The first bone weight to compare.

    BoneWeight1 b

    The second bone weight to compare.

    Returns
    Type Description
    int

    A value less than zero if b has a greater weight than a, zero if both weights are equal, or a value greater than zero otherwise.

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    In this article
    Back to top TriLib documentation