| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../" />
- <script src="list.js"></script>
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <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.
- </p>
- <h2>Example</h2>
- <code>
- // Instantiate a exporter
- var exporter = new THREE.PLYExporter( defaultOptions );
- // 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>
- <p>
- </p>
- <p>
- Creates a new [name].
- </p>
- <h2>Methods</h2>
- <h3>[method:null parse]( [param:Object3D input], [param:Object options] )</h3>
- <p>
- [page:Object input] — Object3D<br />
- [page:Options options] — Export options<br />
- <ul>
- <li>excludeAttributes - array. Which properties to explicitly exclude from the exported PLY file. Valid values are 'color', 'normal', 'uv', and 'index'. If indices are excluded, then a point cloud is exported. Default is an empty array.</li>
- <li>binary - bool. Export in binary format, returning an ArrayBuffer. Default is false.</li>
- </ul>
- </p>
- <p>
- Generates ply file data as string or ArrayBuffer (ascii or binary) output from the input object
- </p>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/examples/js/exporters/PLYExporter.js examples/js/exporters/PLYExporter.js]
- </body>
- </html>
|