GltfData

Overview

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

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

Properties: accessors, alphaCutoff, alphaMode, asset, attributes, baseColorFactor, and 35 more.

Properties

NameTypeAccessDescription
asset: { version: string; generator?: string }ReadGets the asset.
version: stringReadGets the version.
generator: stringReadGets the generator.
scene: numberReadGets the scene.
scenes: { nodes: number[] }[]ReadGets the scenes.
nodes: number[]ReadGets the nodes.
nodes: { name?: string; mesh?: number; children?: number[]; translation?: number[]; rotation?: number[]; scale?: number[]; matrix?: number[] }[]ReadGets the nodes.
name: stringReadGets the name.
mesh: numberReadGets the mesh.
children: number[]ReadGets the children.
translation: number[]ReadGets the translation.
rotation: number[]ReadGets the rotation.
scale: number[]ReadGets the scale.
matrix: number[]ReadGets the matrix.
meshes: { name?: string; primitives: { attributes: { [key: string]: number }; indices?: number; material?: number; mode?: number }[] }[]ReadGets the meshes.
name: stringReadGets the name.
primitives: { attributes: { [key: string]: number }; indices?: number; material?: number; mode?: number }[]ReadGets the primitives.
attributes: { [key: string]: number }ReadGets the attributes.
indices: numberReadGets the indices.
material: numberReadGets the material.
mode: numberReadGets the mode.
accessors: { bufferView?: number; componentType: number; count: number; type: string; min?: number[]; max?: number[] }[]ReadGets the accessors.
bufferView: numberReadGets the buffer view.
componentType: numberReadGets the component type.
count: numberReadGets the count.
type: stringReadGets the type.
min: number[]ReadGets the min.
max: number[]ReadGets the max.
bufferViews: { buffer: number; byteOffset?: number; byteLength: number; byteStride?: number }[]ReadGets the buffer views.
buffer: numberReadGets the buffer.
byteOffset: numberReadGets the byte offset.
byteLength: numberReadGets the byte length.
byteStride: numberReadGets the byte stride.
buffers: { byteLength: number; uri?: string }[]ReadGets the buffers.
byteLength: numberReadGets the byte length.
uri: stringReadGets the uri.
materials: { name?: string; pbrMetallicRoughness?: { baseColorFactor?: number[]; metallicFactor?: number; roughnessFactor?: number }; emissiveFactor?: number[]; alphaMode?: string; alphaCutoff?: number }[]ReadGets the materials.
name: stringReadGets the name.
pbrMetallicRoughness: { baseColorFactor?: number[]; metallicFactor?: number; roughnessFactor?: number }ReadGets the pbr metallic roughness.
baseColorFactor: number[]ReadGets the base color factor.
metallicFactor: numberReadGets the metallic factor.
roughnessFactor: numberReadGets the roughness factor.
emissiveFactor: number[]ReadGets the emissive factor.
alphaMode: stringReadGets the alpha mode.
alphaCutoff: numberReadGets the alpha cutoff.

See Also