Model loading · interface

ThreeMfResult

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

Explained in Importing models.

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

Properties

NameTypeDescription
meshesreadonlyMeshData[]
materialsreadonlyDrftMaterial[]One per mesh, by ordinal.
warningsreadonlystring[]
declaredUpreadonlyUpAxis3MF is Z-up and says so in its specification rather than per file, so this is a fact about the format rather than something read out of the document.
unitScalereadonlynumberMetres per unit, from the model's unit attribute. Millimetres is the default.