OBJExporter.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc">
  12. An exporter for the <a href="https://en.wikipedia.org/wiki/Wavefront_.obj_file" target="_blank">OBJ</a> file format.
  13. </p>
  14. <p class="desc">
  15. [name] is not able to export material data into MTL files so only geometry data are supported.
  16. </p>
  17. <h2>Code Example</h2>
  18. <code>
  19. // Instantiate an exporter
  20. const exporter = new OBJExporter();
  21. // Parse the input and generate the OBJ output
  22. const data = exporter.parse( scene );
  23. downloadFile( data );
  24. </code>
  25. <h2>Constructor</h2>
  26. <h3>[name]()</h3>
  27. <p>
  28. </p>
  29. <p>
  30. Creates a new [name].
  31. </p>
  32. <h2>Methods</h2>
  33. <h3>[method:String parse]( [param:Object3D object] )</h3>
  34. <p>
  35. [page:Object object] — Object3D to be exported.
  36. </p>
  37. <p>
  38. Generates a string holding the OBJ data.
  39. </p>
  40. <h2>Source</h2>
  41. <p>
  42. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/exporters/OBJExporter.js examples/jsm/exporters/OBJExporter.js]
  43. </p>
  44. </body>
  45. </html>