Exports a SceneModel as SVG (Scalable Vector Graphics) text. Triangle meshes become <polygon> elements, line meshes become <line> (or <polyline> with coalescing enabled), point meshes become <circle r="...">. One <g id="..."> wrapper per SceneObject.

SVG is inherently 2D so one world axis is dropped at export time; SVGExportOptions.projectionPlane (default "XY") controls which. Pairs naturally with SVGLoader for round-tripping.

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

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