Exports a SceneModel to an XGF file.

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

XGF carries the full visual model: geometry (positions, normals, UVs, per-vertex colours, indices, edge indices, AABBs, modelling matrices), 3D Gaussian Splatting geometry (per-splat scales + rotation quaternions), PBR materials with textures (image bytes + sampler params + colour-space encoding), per-material triplanarScale, and objects referencing meshes.

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