Import
PLYExporter is an addon, and must be imported explicitly, see Installation#Addons.
import { PLYExporter } from 'three/addons/exporters/PLYExporter.js';
Methods
.parse( object : Object3D, onDone : PLYExporter~OnDone, options : PLYExporter~Options ) : string | ArrayBuffer
Parses the given 3D object and generates the PLY output.
If the 3D object is composed of multiple children and geometry, they are merged into a single mesh in the file.
| object |
The 3D object to export. |
| onDone |
A callback function that is executed when the export has finished. |
| options |
The export options. |
- Returns: The exported PLY.
Type Definitions
.OnDone( result : string | ArrayBuffer )
onDone callback of PLYExporter.
| result |
The generated PLY ascii or binary. |
.Options
Export options of PLYExporter.
|
binary
boolean |
Whether to export in binary format or ASCII. Default is |
|
excludeAttributes
Array.<string> |
Which properties to explicitly exclude from
the exported PLY file. Valid values are |
|
littleEndian
boolean |
Whether the binary export uses little or big endian. Default is |