Selva Compute API Reference - v1.1.2
    Preparing search index...
    Index

    Constructors

    • Create a new instance of THREE.InterleavedBufferAttribute | InterleavedBufferAttribute.

      Parameters

      • interleavedBuffer: InterleavedBuffer
      • itemSize: number
      • offset: number
      • Optionalnormalized: boolean

        Default false.

      Returns InterleavedBufferAttribute

    Properties

    The InterleavedBuffer instance passed in the constructor.

    isInterleavedBufferAttribute: true

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

    This is a constant value

    true

    itemSize: number

    How many values make up each item.

    Expects a Integer

    name: string

    Optional name for this attribute instance.

    ''

    normalized: boolean

    false

    offset: number

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

    Expects a Integer

    Accessors

    • get array(): TypedArray

      The value of data.array.

      Returns TypedArray

      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

      get-only property.

    • set needsUpdate(value: boolean): void

      Flag to indicate that the .data (InterleavedBuffer) attribute has changed and should be re-sent to the GPU.

      Parameters

      • value: boolean

      Returns void

      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

      • Optionaldata: {}

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

      Returns BufferAttribute

    • Returns the given component of the vector at the given index.

      Parameters

      • index: number
      • component: number

      Returns number

    • 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 given component of the vector at the given index.

      Parameters

      • index: number
      • component: number
      • value: number

      Returns this

    • 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

      • Optionaldata: {}

        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;
      }

    • Applies matrix m to every Vector3 element of this InterleavedBufferAttribute, interpreting the elements as a direction vectors.

      Parameters

      Returns this