Exports a SceneModel to an XGF file.

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

XGF v2 carries the full visual model: geometry (positions, normals, UVs, per-vertex colours, indices, edge indices, AABBs, modelling matrices and fixed-topology geometry frames), per-mesh frameTime, 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.

Geometry frames are complete replacement vertex states, not deltas. The exported geometry owns the immutable frame position/normal data, while each exported mesh owns its frameTime offset so shared framed geometry can be sampled at different times by different meshes.

Hierarchy (View Summary)

Constructors

Properties

defaultVersion: string

The default 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