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

Method createPrimitive

packages/core/src/document.ts:248–250  ·  view source on GitHub ↗

* Creates a new Primitive. Primitives must be attached to a Mesh * for use and export; they are not otherwise associated with a Root.

()

Source from the content-addressed store, hash-verified

246 * for use and export; they are not otherwise associated with a {@link Root}.
247 */
248 createPrimitive(): Primitive {
249 return new Primitive(this._graph);
250 }
251
252 /**
253 * Creates a new {@link PrimitiveTarget}, or morph target. Targets must be attached to a

Callers 15

createSkinnedPrimitiveFunction · 0.95
createLineStripPrimFunction · 0.80
createTriangleStripPrimFunction · 0.80
createTriangleFanPrimFunction · 0.80
createTorusKnotPrimitiveFunction · 0.80
document.test.tsFile · 0.80
mesh.test.tsFile · 0.80
readMethod · 0.80

Calls

no outgoing calls

Tested by 15

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