Skip to content

five-on-it / apps/tools/src/gltf / readGltfPieces

Function: readGltfPieces() ​

readGltfPieces(glb, options?): GltfPiece[]

Defined in: apps/tools/src/gltf.ts:140

Reads the pieces of a glTF binary: one per top-level node of the default scene, its subtree's primitives merged, the node's own translation dropped. Primitives that are not triangle lists are skipped, and so is the subtree of every node skip names (a vehicle's wheels, when its body alone is wanted).

Parameters ​

glb ​

Bytes

options? ​

skip? ​

(name) => boolean

Returns ​

GltfPiece[]