rhodonite
    Preparing search index...

    Class SimpleVertexAttribute

    A simple implementation of vertex attribute that provides access to vertex data with semantic information. This class wraps an Accessor and associates it with a specific vertex attribute semantic.

    Implements

    Index
    • Retrieves a scalar value at the specified index as a single-element array.

      Parameters

      • i: number

        The index of the vertex data to retrieve

      • option: IndicesAccessOption

        Options for accessing indexed data

      Returns Array1<number>

      A single-element array containing the scalar value

    • Retrieves a 2-component vector value at the specified index as an array.

      Parameters

      • i: number

        The index of the vertex data to retrieve

      • option: IndicesAccessOption

        Options for accessing indexed data

      Returns Array2<number>

      A 2-element array containing the vector components [x, y]

    • Retrieves a 3-component vector value at the specified index as an array.

      Parameters

      • i: number

        The index of the vertex data to retrieve

      • option: IndicesAccessOption

        Options for accessing indexed data

      Returns Array3<number>

      A 3-element array containing the vector components [x, y, z]

    • Retrieves a 4-component vector value at the specified index as an array.

      Parameters

      • i: number

        The index of the vertex data to retrieve

      • option: IndicesAccessOption

        Options for accessing indexed data

      Returns Array4<number>

      A 4-element array containing the vector components [x, y, z, w]