Constructors

Properties

The InterleavedBuffer instance passed in the constructor.

isInterleavedBufferAttribute: true

Read-only flag to check if a given object is of type InterleavedBufferAttribute.

Remarks

This is a constant value

Default Value

true

itemSize: number

How many values make up each item.

Remarks

Expects a Integer

name: string

Optional name for this attribute instance.

Default Value

''

normalized: boolean

Default Value

false

offset: number

The offset in the underlying array buffer where an item starts.

Remarks

Expects a Integer

Accessors

  • get array(): TypedArray
  • The value of data.array.

    Returns TypedArray

    Remarks

    get-only property.

  • get count(): number
  • The value of .data.count. If the buffer is storing a 3-component item (such as a position, normal, or color), then this will count the number of such items stored.

    Returns number

    Remarks

    get-only property.

  • set needsUpdate(value): void
  • Flag to indicate that the .data (InterleavedBuffer) attribute has changed and should be re-sent to the GPU.

    Parameters

    • value: boolean

    Returns void

    Remarks

    Setting this to have the same result of setting true also increments the InterleavedBuffer.needsUpdate of .data.

Methods

  • Applies matrix m to every Vector3 element of this InterleavedBufferAttribute.

    Parameters

    Returns this

  • Applies normal matrix m to every Vector3 element of this InterleavedBufferAttribute.

    Parameters

    Returns this

  • Creates a clone of this InterleavedBufferAttribute.

    Parameters

    • Optional data: {}

      This object holds shared array buffers required for properly cloning geometries with interleaved attributes.

      Returns BufferAttribute

    • Returns the w component of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      Returns number

    • Returns the x component of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      Returns number

    • Returns the y component of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      Returns number

    • Returns the z component of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      Returns number

    • Sets the w component of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      • z: number

      Returns this

    • Sets the x component of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      • x: number

        Expects a Float

      Returns this

    • Sets the x and y components of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      • x: number

        Expects a Float

      • y: number

        Expects a Float

      Returns this

    • Sets the x, y and z components of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      • x: number

        Expects a Float

      • y: number

        Expects a Float

      • z: number

        Expects a Float

      Returns this

    • Sets the x, y, z and w components of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      • x: number

        Expects a Float

      • y: number

        Expects a Float

      • z: number

        Expects a Float

      • w: number

        Expects a Float

      Returns this

    • Sets the y component of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      • y: number

        Expects a Float

      Returns this

    • Sets the z component of the item at the given index.

      Parameters

      • index: number

        Expects a Integer

      • z: number

        Expects a Float

      Returns this

    • Serializes this InterleavedBufferAttribute. Converting to JSON Geometry format v4,

      Parameters

      • Optional data: {}

        This object holds shared array buffers required for properly serializing geometries with interleaved attributes.

        Returns {
            data: string;
            isInterleavedBufferAttribute: true;
            itemSize: number;
            normalized: boolean;
            offset: number;
        }

        • data: string
        • isInterleavedBufferAttribute: true
        • itemSize: number
        • normalized: boolean
        • offset: number
      • Applies matrix m to every Vector3 element of this InterleavedBufferAttribute, interpreting the elements as a direction vectors.

        Parameters

        Returns this