OBJExporter

An exporter for the OBJ file format.

OBJExporter is not able to export material data into MTL files so only geometry data are supported.

Import

OBJExporter is an add-on, and must be imported explicitly. See Installation / Addons.

import { OBJExporter } from 'three/addons/exporters/OBJExporter.js';

Code Example

// Instantiate an exporter

const exporter = new OBJExporter();

// Parse the input and generate the OBJ output

const data = exporter.parse( scene );

downloadFile( data );

Constructor

OBJExporter()

Creates a new OBJExporter.

Methods

.parse ( object : Object3D ) : String

object — Object3D to be exported.

Generates a string holding the OBJ data.

Leave a comment

Your email address will not be published. Required fields are marked *