[name]

Constructor

[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )

Properties

.data : InterleavedBuffer

The [page:InterleavedBuffer InterleavedBuffer] instance passed in the constructor.

.array : TypedArray

The value of [page:InterleavedBufferAttribute.data data].array.

.count : Integer

The value of [page:InterleavedBufferAttribute.data 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.

.isInterleavedBufferAttribute : Boolean

Read-only flag to check if a given object is of type [name].

.itemSize : Integer

How many values make up each item.

.name : String

Optional name for this attribute instance. Default is an empty string.

.needsUpdate : Boolean

Default is `false`. Setting this to `true` will send the entire interleaved buffer (not just the specific attribute data) to the GPU again.

.normalized : Boolean

Default is `false`.

.offset : Integer

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

Methods

.applyMatrix4 ( [param:Matrix4 m] ) : this

Applies matrix [page:Matrix4 m] to every Vector3 element of this InterleavedBufferAttribute.

.applyNormalMatrix ( [param:Matrix3 m] ) : this

Applies normal matrix [page:Matrix3 m] to every Vector3 element of this InterleavedBufferAttribute.

.transformDirection ( [param:Matrix4 m] ) : this

Applies matrix [page:Matrix4 m] to every Vector3 element of this InterleavedBufferAttribute, interpreting the elements as a direction vectors.

.getX ( [param:Integer index] ) : Number

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

.getY ( [param:Integer index] ) : Number

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

.getZ ( [param:Integer index] ) : Number

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

.getW ( [param:Integer index] ) : Number

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

.setX ( [param:Integer index], [param:Float x] ) : this

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

.setY ( [param:Integer index], [param:Float y] ) : this

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

.setZ ( [param:Integer index], [param:Float z] ) : this

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

.setW ( [param:Integer index], [param:Float w] ) : this

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

.setXY ( [param:Integer index], [param:Float x], [param:Float y] ) : this

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

.setXYZ ( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] ) : this

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

.setXYZW ( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] ) : this

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

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]

InterleavedBufferAttribute InterleavedBufferAttribute InterleavedBufferAttribute InterleavedBufferAttribute

InterleavedBufferAttribute InterleavedBufferAttribute InterleavedBufferAttribute InterleavedBufferAttribute