Search Results for

    Show / Hide Table of Contents

    Interface IBlendShapeKey

    Represents a TriLib blend shape key (a single blend shape target/frame), including delta attributes and an optional mapping to the base geometry.

    Inherited Members
    IObject.Name
    IObject.Used
    Namespace: TriLibCore.Interfaces
    Assembly: TriLibCore.Source.dll
    Syntax
    public interface IBlendShapeKey : IObject

    Properties

    FrameWeight

    Gets or sets the weight of this blend shape frame, as used by Unity when adding the frame.

    Declaration
    float FrameWeight { get; set; }
    Property Value
    Type Description
    float

    FullGeometryShape

    Gets or sets a value indicating whether this blend shape provides data for the full geometry (i.e., deltas exist for all vertices and no index mapping is required).

    Declaration
    bool FullGeometryShape { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    When true, consumers may ignore IndexMap and treat delta arrays as aligned with the base geometry vertex order.

    IndexMap

    Gets or sets a mapping where the key is the original vertex index (from the base mesh) and the value is the index into the blend shape delta arrays (Vertices, Normals, Tangents).

    Declaration
    Dictionary<int, int> IndexMap { get; set; }
    Property Value
    Type Description
    Dictionary<int, int>
    Remarks

    This mapping is used when the blend shape does not provide deltas for every vertex. When FullGeometryShape is true, this mapping may be unused.

    Normals

    Gets or sets the delta normals for this blend shape key.

    Declaration
    List<Vector3> Normals { get; set; }
    Property Value
    Type Description
    List<Vector3>
    Remarks

    When not provided, normals may be calculated depending on importer options. When FullGeometryShape is false, the indices are addressed through IndexMap.

    Tangents

    Gets or sets the delta tangents for this blend shape key.

    Declaration
    List<Vector3> Tangents { get; set; }
    Property Value
    Type Description
    List<Vector3>
    Remarks

    When not provided, tangents may be calculated depending on importer options. When FullGeometryShape is false, the indices are addressed through IndexMap.

    Vertices

    Gets or sets the delta vertex positions for this blend shape key.

    Declaration
    List<Vector3> Vertices { get; set; }
    Property Value
    Type Description
    List<Vector3>
    Remarks

    Each entry represents the positional delta to be applied to the base mesh vertex. When FullGeometryShape is false, the indices are addressed through IndexMap.

    Extension Methods

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