Exports a SceneModel to an XGF file.

For detailed usage, refer to @xeokit/sdk/formats/xgf.

Versions:

  • "1.0.0" — geometry + per-mesh inline RGBA only. Default.
  • "1.1.0" ("XKT2") — adds materials with full PBR + alpha mode/cutoff, textures (image bytes + sampler params), and per-geometry normals + UVs.

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