PLYExporter.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. An exporter for *PLY*.
  14. <br /><br />
  15. <a href="https://www.khronos.org/gltf">glTF</a> (GL Transmission Format) is an
  16. <a href="https://github.com/KhronosGroup/glTF/tree/master/specification/2.0">open format specification</a>
  17. for efficient delivery and loading of 3D content. Assets may be provided either in JSON (.gltf)
  18. or binary (.glb) format. External files store textures (.jpg, .png) and additional binary
  19. data (.bin). A glTF asset may deliver one or more scenes, including meshes, materials,
  20. textures, skins, skeletons, morph targets, animations, lights, and/or cameras.
  21. </p>
  22. <h2>Example</h2>
  23. <code>
  24. // Instantiate a exporter
  25. var exporter = new THREE.PLYExporter( defaultOptions );
  26. // Parse the input and generate the ply output
  27. var data = exporter.parse( scene, options );
  28. downloadFile(data);
  29. </code>
  30. [example:misc_exporter_gltf]
  31. <h2>Constructor</h2>
  32. <h3>[name]()</h3>
  33. <p>
  34. </p>
  35. <p>
  36. Creates a new [name].
  37. </p>
  38. <h2>Methods</h2>
  39. <h3>[method:null parse]( [param:Object3D input], [param:Object options] )</h3>
  40. <p>
  41. [page:Object input] — Object3D<br />
  42. [page:Options options] — Export options<br />
  43. <ul>
  44. <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>
  45. <li>binary - bool. Export in binary format, returning an ArrayBuffer. Default is false.</li>
  46. </ul>
  47. </p>
  48. <p>
  49. Generates ply file data as string or ArrayBuffer (ascii or binary) output from the input object
  50. </p>
  51. <h2>Source</h2>
  52. [link:https://github.com/mrdoob/three.js/blob/master/examples/js/exporters/PLYExporter.js examples/js/exporters/PLYExporter.js]
  53. </body>
  54. </html>
粤ICP备19079148号