MCPcopy Create free account
hub / github.com/CNCKitchen/stlTexturizer / loadModelFile

Function loadModelFile

js/stlLoader.js:470–475  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

468 const geometry = new THREE.BufferGeometry();
469 geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));
470 return geometry;
471}
472
473/**
474 * Unified loader: dispatches to the right parser based on file extension.
475 * `opts` is only meaningful for STEP files ({ quality, onProgress }); the
476 * STEP loader is imported lazily so its worker code stays off the critical
477 * path for the common STL case.
478 */

Callers 1

handleModelFileFunction · 0.90

Calls 4

loadOBJFileFunction · 0.85
load3MFFileFunction · 0.85
loadSTLFileFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected