GltfData

Overview

GltfData is a interface in Aspose.3D FOSS for Typescript.

GltfData.asset provides the glTF asset metadata including version and generator.

Properties

NameTypeAccessDescription
asset: { version: string; generator: string }ReadHolds the glTF asset metadata with version and optional generator
version: stringReadIs the glTF version string of the file
generator: stringReadReturns the name of the tool that generated the glTF
scene: numberReadIndicates the index of the default scene in the glTF file
scenes: GltfScene[]ReadIs an array of scene objects, each listing its root node indices
nodes: GltfNode[]ReadDefines node objects with optional name, mesh, children, and transforms
meshes: GltfMesh[]ReadIs an array of mesh objects, each with optional name and primitives
accessors: GltfAccessor[]ReadIs an array of accessor objects defining typed views of buffer data
bufferViews: GltfBufferView[]ReadIs an array of buffer view objects describing slices of buffers
buffers: { byteLength: number; uri?: string }[]ReadIs an array of buffer objects with byteLength and optional uri
byteLength: numberReadGives the total byte length of the binary glTF data
uri: stringReadProvides the URI of the external binary buffer, if present
materials: GltfMaterial[]ReadIs an array of material definitions used by meshes

See Also