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

Method getAttribute

packages/core/src/properties/primitive.ts:143–145  ·  view source on GitHub ↗

Returns a vertex attribute as an Accessor.

(semantic: string)

Source from the content-addressed store, hash-verified

141
142 /** Returns a vertex attribute as an {@link Accessor}. */
143 public getAttribute(semantic: string): Accessor | null {
144 return this.getRefMap('attributes', semantic);
145 }
146
147 /**
148 * Sets a vertex attribute to an {@link Accessor}. All attributes must have the same vertex

Callers 15

mesh.test.tsFile · 0.45
getMeshBoundsFunction · 0.45
writeMethod · 0.45
createParamsMethod · 0.45
getTypeFunction · 0.45
instance.test.tsFile · 0.45
dequantize.test.tsFile · 0.45
primBoundsFunction · 0.45
reorder.test.tsFile · 0.45
tangents.test.tsFile · 0.45

Calls

no outgoing calls

Tested by 4

primBoundsFunction · 0.36
primBoundsFunction · 0.36
primBoundsFunction · 0.36
getTexCoordAreaFunction · 0.36