StlExporter

Overview

StlExporter converts an in-memory Scene graph into STL (.stl) format and writes the result to a file path or output stream. It is invoked automatically by Scene.save() when the target file extension is .stl or when a StlSaveOptions instance is passed explicitly to control output. Pass a StlSaveOptions object to govern serialisation details such as coordinate-system handedness, vertex precision, and optional format-specific extensions during the export operation.

Methods

SignatureDescription
constructor()Creates a new STL exporter instance
supportsFormat(fileFormat: FileFormat)boolean
export(scene: Scene, stream: any, options: SaveOptions)

See Also