|
@@ -13,27 +13,23 @@
|
|
|
<p class="desc">
|
|
|
An exporter for *PLY*.
|
|
|
<br /><br />
|
|
|
- <a href="https://www.khronos.org/gltf">glTF</a> (GL Transmission Format) is an
|
|
|
- <a href="https://github.com/KhronosGroup/glTF/tree/master/specification/2.0">open format specification</a>
|
|
|
- for efficient delivery and loading of 3D content. Assets may be provided either in JSON (.gltf)
|
|
|
- or binary (.glb) format. External files store textures (.jpg, .png) and additional binary
|
|
|
- data (.bin). A glTF asset may deliver one or more scenes, including meshes, materials,
|
|
|
- textures, skins, skeletons, morph targets, animations, lights, and/or cameras.
|
|
|
+ <a href="https://www.khronos.org/gltf">PLY</a> (Polygon or Stanford Triangle Format) is
|
|
|
+ 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.
|
|
|
</p>
|
|
|
|
|
|
<h2>Example</h2>
|
|
|
|
|
|
<code>
|
|
|
// Instantiate a exporter
|
|
|
- var exporter = new THREE.PLYExporter( defaultOptions );
|
|
|
+ var exporter = new THREE.PLYExporter();
|
|
|
|
|
|
// Parse the input and generate the ply output
|
|
|
var data = exporter.parse( scene, options );
|
|
|
downloadFile(data);
|
|
|
</code>
|
|
|
|
|
|
- [example:misc_exporter_gltf]
|
|
|
-
|
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
<h3>[name]()</h3>
|
|
@@ -55,7 +51,8 @@
|
|
|
</ul>
|
|
|
</p>
|
|
|
<p>
|
|
|
- Generates ply file data as string or ArrayBuffer (ascii or binary) output from the input object
|
|
|
+ Generates ply file data as string or ArrayBuffer (ascii or binary) output from the input object.
|
|
|
+ If the object is composed of multiple children and geometry, they are merged into a single mesh in the file.
|
|
|
</p>
|
|
|
|
|
|
<h2>Source</h2>
|