StlSaveOptions

Overview

StlSaveOptions controls how a Scene is serialised to STL (.stl) format. Construct an instance, configure the desired properties, and pass it to Scene.save() to override the built-in export defaults. Typical settings include output coordinate-system handedness, floating-point precision, whether binary buffers are embedded, and format-version selection. When Scene.save() receives only a file path, StlFormat supplies the default export configuration automatically.

Properties

NameTypeAccessDescription
flipCoordinateSystembooleanRead
scalenumberReadSpecifies a uniform scaling factor applied to the model when saving to STL
binaryModebooleanReadControls whether the exported STL file is written in binary (true) or ASCII (false) format

Methods

SignatureDescription
constructor(fileFormat: FileFormat)Creates a new StlSaveOptions instance for the specified file format

See Also