five-on-it / apps/tools/src/gltf / GltfPiece
Interface: GltfPiece
Defined in: apps/tools/src/gltf.ts:17
One piece read from a glTF file, in the glTF frame (+y up, right-handed, metres).
Properties
extras
extras:
Record<string,unknown>
Defined in: apps/tools/src/gltf.ts:27
The node's custom properties (Blender's custom properties, exported as extras).
groups
groups:
object[]
Defined in: apps/tools/src/gltf.ts:25
The runs of triangles with their colours, one per primitive.
color
color: [
number,number,number]
count
count:
number
start
start:
number
indices
indices:
number[]
Defined in: apps/tools/src/gltf.ts:23
Triangle vertex indices, three per triangle.
name
name:
string
Defined in: apps/tools/src/gltf.ts:19
The top-level node's name.
positions
positions:
number[]
Defined in: apps/tools/src/gltf.ts:21
Vertex positions, three numbers each.