Model loading · function

threeMfToMeshes

Read a .3mf archive.

Explained in Importing models.

function threeMfToMeshes(buffer: ArrayBuffer, inflate: Inflate): ThreeMfResult
import { threeMfToMeshes } from '@driftengine/assets';

Parameters

ParameterTypeDescription
bufferArrayBuffer
inflateInflate

In depth

The model part is named by the OPC relationships, and is 3D/3dmodel.model in practice. Both are tried, the relationship first, because "in practice" is how a reader acquires a file it cannot open two years later.