Model loading · function
threeMfToMeshes
Read a .3mf archive.
Explained in Importing models.
function threeMfToMeshes(buffer: ArrayBuffer, inflate: Inflate): ThreeMfResultimport { threeMfToMeshes } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
buffer | ArrayBuffer | |
inflate | Inflate |
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.