An exporter for the [link:https://en.wikipedia.org/wiki/Wavefront_.obj_file OBJ] file format.
[name] is not able to export material data into MTL files so only geometry data are supported.
[name] is an add-on, and must be imported explicitly. See [link:#manual/introduction/Installation Installation / Addons].
import { OBJExporter } from 'three/addons/exporters/OBJExporter.js';
// Instantiate an exporter
const exporter = new OBJExporter();
// Parse the input and generate the OBJ output
const data = exporter.parse( scene );
downloadFile( data );
Creates a new [name].
[page:Object object] — Object3D to be exported.
Generates a string holding the OBJ data.
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/exporters/OBJExporter.js examples/jsm/exporters/OBJExporter.js]