Exports a SceneModel's triangle geometry to a Dassault Systèmes 3DXML (.3dxml) file — the inverse of ThreeDXMLLoader.

const fileData = await new ThreeDXMLExporter().write({ sceneModel });
// fileData is an ArrayBuffer of .3dxml (ZIP) bytes

Each triangle SceneMesh is written as a part: its (dequantized) geometry goes into a .3DRep representation document, and the product structure places it under a single root with the mesh's matrix as the instance RelativeMatrix. Round-trips with the loader: a model exported and re-imported reproduces the same triangles, transforms and flat colours.

v1 exports triangle-family geometry only (no lines / points / splats), one representation per mesh (no instancing dedup), and no semantic data. Single "*" version — 3DXML is detected from its ZIP container, not a version header.

Hierarchy (View Summary)

Constructors

Properties

defaultVersion: string

The default supported schema version.

encoders: { [key: string]: ModelEncoder }

An encoder for each supported schema version.

fileDataType: string

Data type of the file written by this Exporter.

format: string

The exported model file format.

versions: string[]

List of supported schema versions.

Methods