[name]

An exporter for *PLY*.

PLY (Polygon or Stanford Triangle Format) is a file format for efficient delivery and loading of simple, static 3D content in a dense format. Both binary and ascii formats are supported. PLY can store vertex positions, colors, normals and uv coordinates. No textures or texture references are saved.

Example

// Instantiate an exporter var exporter = new THREE.PLYExporter(); // Parse the input and generate the ply output var data = exporter.parse( scene, options ); downloadFile(data);

Constructor

[name]()

Creates a new [name].

Methods

[method:null parse]( [param:Object3D input], [param:Function onDone], [param:Object options] )

[page:Object input] — Object3D
[page:Function onCompleted] — Will be called when the export completes. The argument will be the generated ply ascii or binary ArrayBuffer.
[page:Options options] — Export options

Generates ply file data as string or ArrayBuffer (ascii or binary) output from the input object. The data that is returned is the same that is passed into the "onCompleted" function. If the object is composed of multiple children and geometry, they are merged into a single mesh in the file.

Source

[link:https://github.com/mrdoob/three.js/blob/master/examples/js/exporters/PLYExporter.js examples/js/exporters/PLYExporter.js]