[name]

"Interleaved" means that multiple attributes, possibly of different types, (e.g., position, normal, uv, color) are packed into a single array buffer.

An introduction into interleaved arrays can be found here: [link:https://blog.tojicode.com/2011/05/interleaved-array-basics.html Interleaved array basics]

Example

[example:webgl_buffergeometry_points_interleaved webgl / buffergeometry / points / interleaved]

Constructor

[name]( [param:TypedArray array], [param:Integer stride] )

[page:TypedArray array] -- A typed array with a shared buffer. Stores the geometry data.
[page:Integer stride] -- The number of typed-array elements per vertex.

Properties

[property:Array array]

A typed array with a shared buffer. Stores the geometry data.

[property:Integer stride]

The number of typed-array elements per vertex.

[property:Integer count]

Gives the total number of elements in the array.

[property:Boolean dynamic]

Default is *false*.

[property:Object updateRange]

Object containing offset and count.

[property:Number updateRange.offset]

Default is *0*.

[property:Number updateRange.count]

Default is *-1*.

[property:Integer version]

A version number, incremented every time the needsUpdate property is set to true.

[property:Boolean isInterleavedBuffer]

Default is *true*.

[property:Boolean needsUpdate]

Default is *false*. Setting this to true increments [page:InterleavedBuffer.version version].

Methods

[method:InterleavedBuffer setDynamic] ( [param:Boolean value] )

Set [page:InterleavedBuffer.dynamic dynamic] to value.

[method:InterleavedBuffer copy]( [param:InterleavedBuffer source] )

Copies another [name] to this [name].

[method:InterleavedBuffer copyAt]( [param:Integer index1], [param:InterleavedBuffer attribute], [param:Integer index2] )

Copies data from attribute[index2] to [page:InterleavedBuffer.array array][index1].

[method:InterleavedBuffer set]( [param:TypedArray value], [param:Integer offset] )

value - The source (typed) array.
offset - The offset into the target array at which to begin writing values from the source array. Default is *0*.

Stores multiple values in the buffer, reading input values from a specified array.

[method:InterleavedBuffer clone]()

Creates a clone of this [name].

Source

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