MCPcopy
hub / github.com/donmccurdy/glTF-Transform / setArray

Method setArray

packages/core/src/properties/accessor.ts:532–536  ·  view source on GitHub ↗

Assigns the raw typed array underlying this accessor.

(array: TypedArray | null)

Source from the content-addressed store, hash-verified

530
531 /** Assigns the raw typed array underlying this accessor. */
532 public setArray(array: TypedArray | null): this {
533 this.set('componentType', array ? arrayToComponentType(array) : Accessor.ComponentType.FLOAT);
534 this.set('array', array);
535 return this;
536 }
537
538 /** Returns the total bytelength of this accessor, exclusive of padding. */
539 public getByteLength(): number {

Callers 15

createLineStripPrimFunction · 0.45
createTriangleStripPrimFunction · 0.45
createTriangleFanPrimFunction · 0.45
createTorusKnotPrimitiveFunction · 0.45
animation.test.tsFile · 0.45
accessor.test.tsFile · 0.45
mesh.test.tsFile · 0.45
skin.test.tsFile · 0.45
buffer.test.tsFile · 0.45
readMethod · 0.45
cli.test.tsFile · 0.45

Calls 1

arrayToComponentTypeFunction · 0.85

Tested by 15

createSceneFunction · 0.36
createFloatAttributeFunction · 0.36
splitPrimFunction · 0.36
createPrimitiveFunction · 0.36
createUniqueAttributeFunction · 0.36
createSceneBasicFunction · 0.36
createSceneIndexedFunction · 0.36
createSceneInstancedFunction · 0.36
createSceneUnusedFunction · 0.36
createSceneFunction · 0.36
createPrimitiveFunction · 0.36