Model loading · interface

UsdResult

What a .usda yields, in the shape every other reader in this directory returns.

Explained in Importing models.

interface UsdResult
import type { UsdResult } from '@driftengine/assets';

Properties

NameTypeDescription
meshesreadonlyMeshData[]
materialsreadonlyDrftMaterial[]One per mesh, by ordinal.
texturesreadonlyAssetReference[]
warningsreadonlystring[]
declaredUpreadonlyoptionalUpAxisupAxis from the stage metadata. USD writes "Y" or "Z" and defaults to Y.
unitScalereadonlynumbermetersPerUnit from the stage metadata, 1 when it says nothing.