1
0

LDrawUtils.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>LDrawUtils - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <h1 translate="no">LDrawUtils</h1>
  13. <section>
  14. <header>
  15. <div class="class-description"><p>Utility class for LDraw models.</p></div>
  16. </header>
  17. <article>
  18. <h2 class="subsection-title">Import</h2>
  19. <p><span translate="no">LDrawUtils</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
  20. <pre><code class="language-js">import { LDrawUtils } from 'three/addons/utils/LDrawUtils.js';</code></pre>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="LDrawUtils" translate="no">new <a href="#LDrawUtils">LDrawUtils</a><span class="signature">()</span> </h3>
  24. <div class="method">
  25. </div>
  26. </div>
  27. <h2 class="subsection-title">Static Methods</h2>
  28. <h3 class="name name-method" id=".mergeObject" translate="no">.<a href="#.mergeObject">mergeObject</a><span class="signature">( object : <span class="param-type"><a href="Object3D.html">Object3D</a></span> )</span><span class="type-signature"> : <a href="Group.html">Group</a></span> </h3>
  29. <div class="method">
  30. <div class="description">
  31. <p>Merges geometries in the given object by materials and returns a new group object.
  32. Use on not indexed geometries. The object buffers reference the old object ones.
  33. Special treatment is done to the conditional lines generated by LDrawLoader.</p>
  34. </div>
  35. <table class="params">
  36. <tbody>
  37. <tr>
  38. <td class="name">
  39. <strong>object</strong>
  40. </td>
  41. <td class="description last">
  42. <p>The object to merge.</p>
  43. </td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. <dl class="details">
  48. <dt class="tag-returns"><strong>Returns:</strong> The merged object.</dt>
  49. </dl>
  50. </div>
  51. <h2 class="subsection-title">Source</h2>
  52. <p>
  53. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/LDrawUtils.js" translate="no" target="_blank" rel="noopener">examples/jsm/utils/LDrawUtils.js</a>
  54. </p>
  55. </article>
  56. </section>
  57. <script src="../scripts/linenumber.js"></script>
  58. <script src="../scripts/page.js"></script>
  59. </body>
  60. </html>
粤ICP备19079148号