WireframeGeometry2.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>WireframeGeometry2 - 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. <p class="inheritance" translate="no"><a href="InstancedBufferGeometry.html">InstancedBufferGeometry</a> → <a href="LineSegmentsGeometry.html">LineSegmentsGeometry</a> → </p>
  13. <h1 translate="no">WireframeGeometry2</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A special type of line segments geometry intended for wireframe rendering.</p>
  17. <p>This is used in <a href="Wireframe.html">Wireframe</a> to describe the shape.</p></div>
  18. <h2>Code Example</h2>
  19. <div translate="no"><pre><code class="language-js">const geometry = new THREE.IcosahedronGeometry();
  20. const wireframeGeometry = new WireframeGeometry2( geo );
  21. </code></pre></div>
  22. </header>
  23. <article>
  24. <h2 class="subsection-title">Import</h2>
  25. <p><span translate="no">WireframeGeometry2</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>
  26. <pre><code class="language-js">import { WireframeGeometry2 } from 'three/addons/lines/WireframeGeometry2.js';</code></pre>
  27. <div class="container-overview">
  28. <h2>Constructor</h2>
  29. <h3 class="name name-method" id="WireframeGeometry2" translate="no">new <a href="#WireframeGeometry2">WireframeGeometry2</a><span class="signature">( geometry : <span class="param-type"><a href="BufferGeometry.html">BufferGeometry</a></span> )</span> </h3>
  30. <div class="method">
  31. <div class="description">
  32. <p>Constructs a new wireframe geometry.</p>
  33. </div>
  34. <table class="params">
  35. <tbody>
  36. <tr>
  37. <td class="name">
  38. <strong>geometry</strong>
  39. </td>
  40. <td class="description last">
  41. <p>The geometry to render the wireframe for.</p>
  42. </td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>
  48. <h2 class="subsection-title">Properties</h2>
  49. <div class="member">
  50. <h3 class="name" id="isWireframeGeometry2" translate="no">.<a href="#isWireframeGeometry2">isWireframeGeometry2</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  51. <div class="description">
  52. <p>This flag can be used for type testing.</p>
  53. <p>Default is <code>true</code>.</p>
  54. </div>
  55. </div>
  56. <h2 class="subsection-title">Source</h2>
  57. <p>
  58. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/lines/WireframeGeometry2.js" translate="no" target="_blank" rel="noopener">examples/jsm/lines/WireframeGeometry2.js</a>
  59. </p>
  60. </article>
  61. </section>
  62. <script src="../scripts/linenumber.js"></script>
  63. <script src="../scripts/page.js"></script>
  64. </body>
  65. </html>
粤ICP备19079148号