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

Method createMesh

packages/core/src/document.ts:240–242  ·  view source on GitHub ↗

Creates a new Mesh attached to this document's Root.

(name = '')

Source from the content-addressed store, hash-verified

238
239 /** Creates a new {@link Mesh} attached to this document's {@link Root}. */
240 createMesh(name = ''): Mesh {
241 return new Mesh(this._graph, name);
242 }
243
244 /**
245 * Creates a new {@link Primitive}. Primitives must be attached to a {@link Mesh}

Callers 15

document.test.tsFile · 0.80
root.test.tsFile · 0.80
mesh.test.tsFile · 0.80
node.test.tsFile · 0.80
readMethod · 0.80
cli.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 10

createSceneFunction · 0.64
createFloatAttributeFunction · 0.64
createSceneBasicFunction · 0.64
createSceneIndexedFunction · 0.64
createSceneInstancedFunction · 0.64
createSceneUnusedFunction · 0.64
createSceneFunction · 0.64
createPrimitiveFunction · 0.64
createMaterialsFunction · 0.64