Import
STLExporter is an addon, and must be imported explicitly, see Installation#Addons.
import { STLExporter } from 'three/addons/exporters/STLExporter.js';
Methods
.parse( scene : Object3D, options : STLExporter~Options ) : string | ArrayBuffer
Parses the given 3D object and generates the STL output.
If the 3D object is composed of multiple children and geometry, they are merged into a single mesh in the file.
| scene |
A scene, mesh or any other 3D object containing meshes to encode. |
| options |
The export options. |
- Returns: The exported STL.
Type Definitions
.Options
Export options of STLExporter.
|
binary
boolean |
Whether to export in binary format or ASCII. Default is |