five-on-it / apps/tools/src/gltf-write / GlbPiece
Interface: GlbPiece
Defined in: apps/tools/src/gltf-write.ts:12
A piece to write: its name, its triangles in runs of one colour, its extras.
Properties
extras?
optionalextras?:Record<string,unknown>
Defined in: apps/tools/src/gltf-write.ts:22
The node's custom properties.
groups
groups: readonly
object[]
Defined in: apps/tools/src/gltf-write.ts:20
The runs of triangles with their colours.
indices
indices: readonly
number[]
Defined in: apps/tools/src/gltf-write.ts:18
Triangle vertex indices, three per triangle.
name
name:
string
Defined in: apps/tools/src/gltf-write.ts:14
The node's name: the piece's.
positions
positions: readonly
number[]
Defined in: apps/tools/src/gltf-write.ts:16
Vertex positions, three numbers each, in the glTF frame.